Index: strflags.c =================================================================== --- strflags.c (revision 2527) +++ strflags.c (revision 2528) @@ -33,6 +33,7 @@ #include "global.h" #include "strflags.h" +#include "compat_misc.h" /* Because all the macros expect it, that's why. */ typedef struct { @@ -382,7 +383,7 @@ error(msg); u = malloc(sizeof(unknown_flag_t)); - u->str = strndup(fp, flen); + u->str = pcb_strndup(fp, flen); u->next = NULL; /* need to append, to keep order of flags */ if (rv.Flags.unknowns != NULL) {