1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-05-03 23:09:34 +00:00

Replaces all calls to sprintf() with snprintf() in ufs.c

This commit is contained in:
Nick Briggs
2025-02-25 12:55:41 -08:00
parent 9557ae8f5b
commit 11b81f6c17

View File

@@ -826,7 +826,7 @@ int unixpathname(char *src, char *dst, size_t dstlen, int versionp, int genp)
} }
#ifdef DOS #ifdef DOS
if (version >= 0) if (version >= 0)
sprintf(ver2, "%d", version); snprintf(ver2, sizeof(ver2), "%d", version);
else else
*ver2 = '\0'; *ver2 = '\0';
#endif /* DOS */ #endif /* DOS */