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:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user