diff options
author | dholland <dholland@NetBSD.org> | 2009-05-25 23:14:33 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-05-25 23:14:33 +0000 |
commit | b699392ee5e6c55d892a0ab1a639208a373d9bab (patch) | |
tree | 4edbb8ac6ae03948294742a29c376a8854df46cd /mille/save.c | |
parent | 28a2fb534d0a6db57738352113f148c57f1078f1 (diff) | |
download | bsdgames-darwin-b699392ee5e6c55d892a0ab1a639208a373d9bab.tar.gz bsdgames-darwin-b699392ee5e6c55d892a0ab1a639208a373d9bab.tar.zst bsdgames-darwin-b699392ee5e6c55d892a0ab1a639208a373d9bab.zip |
sprintf -> snprintf
Diffstat (limited to 'mille/save.c')
-rw-r--r-- | mille/save.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mille/save.c b/mille/save.c index 1cb0592a..a2fd7be7 100644 --- a/mille/save.c +++ b/mille/save.c @@ -1,4 +1,4 @@ -/* $NetBSD: save.c,v 1.12 2008/01/28 05:55:10 dholland Exp $ */ +/* $NetBSD: save.c,v 1.13 2009/05/25 23:17:31 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: save.c,v 1.12 2008/01/28 05:55:10 dholland Exp $"); +__RCSID("$NetBSD: save.c,v 1.13 2009/05/25 23:17:31 dholland Exp $"); #endif #endif /* not lint */ @@ -167,7 +167,7 @@ rest_f(file) /* * initialize some necessary values */ - (void)sprintf(Initstr, "%s [%s]\n", file, buf); + (void)snprintf(Initstr, INITSTR_SIZE, "%s [%s]\n", file, buf); Fromfile = file; return !On_exit; } |