Comment 4 for bug 433146

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

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