this could be src/xfstt.cc: strncpy(info.magic, "TTFNINFO", 8);
but, src/xfstt.h: typedef struct { char magic[4]; // == TTFN char type[4]; // == INFO or NAME u16_t version; u16_t key; u32_t crc; //TTFNdata ttfn[]; } TTFNheader;
so maybe, src/xfstt.cc: - strncpy(info.magic, "TTFNINFO", 8); + strncpy(info.magic, "TTFN", 4); + strncpy(info.type, "INFO", 4);
seems to work, does that look sane? i cant get the failure on debian so i'm not entirely sure whats going on in ubuntu specifically
this could be info.magic, "TTFNINFO", 8);
src/xfstt.cc:
strncpy(
but,
src/xfstt.h:
typedef struct {
char magic[4]; // == TTFN
char type[4]; // == INFO or NAME
u16_t version;
u16_t key;
u32_t crc;
//TTFNdata ttfn[];
} TTFNheader;
so maybe,
src/xfstt.cc:
- strncpy(info.magic, "TTFNINFO", 8);
+ strncpy(info.magic, "TTFN", 4);
+ strncpy(info.type, "INFO", 4);
seems to work, does that look sane? i cant get the failure on debian so i'm not entirely sure whats going on in ubuntu specifically