diff options
author | Miles Bader <miles@gnu.org> | 1996-09-23 17:16:45 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-23 17:16:45 +0000 |
commit | 466e99688eb37179ef13dfcee6c1f29b662f40a0 (patch) | |
tree | d299100cb9067f8355ca3ac6bddab5657b45a3d9 /libdiskfs | |
parent | 38e19125b7692c6da09e1ae956a18cbfd14c5b69 (diff) |
(diskfs_S_io_server_version):
Use snprintf instead of sprintf.
<stdio.h>:
New include.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-version.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/io-version.c b/libdiskfs/io-version.c index 0dba8046..b19dd0d1 100644 --- a/libdiskfs/io-version.c +++ b/libdiskfs/io-version.c @@ -19,6 +19,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Written by Michael I. Bushnell. */ +#include <stdio.h> + #include "priv.h" #include "io_S.h" @@ -31,8 +33,8 @@ diskfs_S_io_server_version (struct protid *cred, { if (cred) { - sprintf (server_name, "%s %s", - diskfs_server_name, diskfs_server_version); + snprintf (server_name, sizeof (string_t), "%s %s", + diskfs_server_name, diskfs_server_version); return 0; } else |