diff options
author | nyan <nyan@FreeBSD.org> | 2002-10-14 13:04:21 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-10-14 13:04:21 +0000 |
commit | b07584819ddb0e249449f08517210f51535e03dd (patch) | |
tree | 06bcb9c62268907d01dbf36d4aeba3d0230d8fb1 /usr.sbin | |
parent | 91f57b58e2d3f17f1ae4e2cfdf2d8c73234d5abc (diff) | |
download | FreeBSD-src-b07584819ddb0e249449f08517210f51535e03dd.zip FreeBSD-src-b07584819ddb0e249449f08517210f51535e03dd.tar.gz |
Use snprintf() instead of sprintf().
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/floppy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/floppy.c b/usr.sbin/sysinstall/floppy.c index d91813f..fc17459 100644 --- a/usr.sbin/sysinstall/floppy.c +++ b/usr.sbin/sysinstall/floppy.c @@ -104,19 +104,19 @@ mediaInitFloppy(Device *dev) #endif #ifdef PC98 - sprintf(fddev, "%s.1200", dev->devname); + snprintf(fddev, sizeof (fddev), "%s.1200", dev->devname); if (mount("msdosfs", mp, MNT_RDONLY, (caddr_t)&dosargs) != -1) goto success; if (mount("ufs", mp, MNT_RDONLY, (caddr_t)&u_args) != -1) goto success; - sprintf(fddev, "%s.1232", dev->devname); + snprintf(fddev, sizeof (fddev), "%s.1232", dev->devname); if (mount("msdosfs", mp, MNT_RDONLY, (caddr_t)&dosargs) != -1) goto success; if (mount("ufs", mp, MNT_RDONLY, (caddr_t)&u_args) != -1) goto success; - sprintf(fddev, "%s.1440", dev->devname); + snprintf(fddev, sizeof (fddev), "%s.1440", dev->devname); if (mount("msdosfs", mp, MNT_RDONLY, (caddr_t)&dosargs) != -1) goto success; if (mount("ufs", mp, MNT_RDONLY, (caddr_t)&u_args) != -1) |