Index: usr.bin/xinstall/xinstall.c =================================================================== --- usr.bin/xinstall/xinstall.c +++ usr.bin/xinstall/xinstall.c @@ -1150,7 +1150,8 @@ p++; else p = temp; - (void)strncpy(p, "INS@XXXX", &temp[tsize - 1] - p); + /* For compatibility with glibc we must use 6 'X' characters */ + (void)strncpy(p, "INS@XXXXXX", &temp[tsize - 1] - p); temp[tsize - 1] = '\0'; return (mkstemp(temp)); }