diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-04-25 21:21:29 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-04-25 21:21:29 +0000 |
commit | 55ec66eda5c4342eb5a7c9502876e3d6ac6a0464 (patch) | |
tree | 1956966d47d9aba8d3fd95bb48abefa467abdf5d /games/gomoku | |
parent | e11872b39b196c5f389f499f74d67a9ff7193b9a (diff) |
strings... ok tedu@, millert@
Diffstat (limited to 'games/gomoku')
-rw-r--r-- | games/gomoku/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/games/gomoku/main.c b/games/gomoku/main.c index a14cfeacb10..a3545773990 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.14 2003/04/06 18:50:37 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.15 2003/04/25 21:21:28 tdeval Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -45,7 +45,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.14 2003/04/06 18:50:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.15 2003/04/25 21:21:28 tdeval Exp $"; #endif #endif /* not lint */ @@ -462,9 +462,11 @@ top: break; n += sp->s_frame[d2] - frames; str = fmtbuf; - sprintf(str, "overlap %s%c,", stoc(s1), pdir[d1]); + snprintf(str, fmtbuf + sizeof fmtbuf - str, + "overlap %s%c,", stoc(s1), pdir[d1]); str += strlen(str); - sprintf(str, "%s%c = %x", stoc(s2), pdir[d2], overlap[n]); + snprintf(str, fmtbuf + sizeof fmtbuf - str, + "%s%c = %x", stoc(s2), pdir[d2], overlap[n]); dlog(fmtbuf); goto top; case 'p': |