Skip to content

Commit 11b81f6

Browse files
committed
Replaces all calls to sprintf() with snprintf() in ufs.c
1 parent 9557ae8 commit 11b81f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ufs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ int unixpathname(char *src, char *dst, size_t dstlen, int versionp, int genp)
826826
}
827827
#ifdef DOS
828828
if (version >= 0)
829-
sprintf(ver2, "%d", version);
829+
snprintf(ver2, sizeof(ver2), "%d", version);
830830
else
831831
*ver2 = '\0';
832832
#endif /* DOS */

0 commit comments

Comments
 (0)