Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/games/dm Pull up following revision(s) (requested by da...
details: https://anonhg.NetBSD.org/src/rev/823a9ccf1bcf
branches: netbsd-2-0
changeset: 564971:823a9ccf1bcf
user: ghen <ghen%NetBSD.org@localhost>
date: Tue May 30 19:50:39 2006 +0000
description:
Pull up following revision(s) (requested by dan in ticket #10630):
games/dm/dm.c: revision 1.23
read config more strictly, from Maximillian Dornseif
diffstat:
games/dm/dm.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r 1f8fc25eff32 -r 823a9ccf1bcf games/dm/dm.c
--- a/games/dm/dm.c Wed May 24 02:38:43 2006 +0000
+++ b/games/dm/dm.c Tue May 30 19:50:39 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm.c,v 1.20 2004/02/08 22:23:50 jsm Exp $ */
+/* $NetBSD: dm.c,v 1.20.2.1 2006/05/30 19:50:39 ghen Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dm.c,v 1.20 2004/02/08 22:23:50 jsm Exp $");
+__RCSID("$NetBSD: dm.c,v 1.20.2.1 2006/05/30 19:50:39 ghen Exp $");
#endif
#endif /* not lint */
@@ -134,19 +134,19 @@
while (fgets(lbuf, sizeof(lbuf), cfp))
switch (*lbuf) {
case 'b': /* badtty */
- if (sscanf(lbuf, "%s%s", f1, f2) != 2 ||
+ if (sscanf(lbuf, "%39s%39s", f1, f2) != 2 ||
strcasecmp(f1, "badtty"))
break;
c_tty(f2);
break;
case 'g': /* game */
- if (sscanf(lbuf, "%s%s%s%s%s",
+ if (sscanf(lbuf, "%39s%39s%39s%39s%39s",
f1, f2, f3, f4, f5) != 5 || strcasecmp(f1, "game"))
break;
c_game(f2, f3, f4, f5);
break;
case 't': /* time */
- if (sscanf(lbuf, "%s%s%s%s", f1, f2, f3, f4) != 4 ||
+ if (sscanf(lbuf, "%39s%39s%39s%39s", f1, f2, f3, f4) != 4 ||
strcasecmp(f1, "time"))
break;
c_day(f2, f3, f4);
Home |
Main Index |
Thread Index |
Old Index