fixed; the previous change was wrong

This commit is contained in:
ceriel 1989-02-16 11:14:22 +00:00
parent 9baa112ea1
commit 188b1df96d

View file

@ -234,10 +234,10 @@ INP_mk_filename(dir, file, newname)
if (!dst) return 0; if (!dst) return 0;
*newname = dst; *newname = dst;
if (*dir) { if (*dir) {
while (*dst++ = *dir++); while (*dst++ = *dir++) ;
*--dst = '/'; *(dst-1) = '/';
} }
while (*++dst = *file++); while (*dst++ = *file++);
return 1; return 1;
} }