Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2]: src/games/dm Pull up following revision(s) (requested by dan ...



details:   https://anonhg.NetBSD.org/src/rev/55b26de79497
branches:  netbsd-2
changeset: 564480:55b26de79497
user:      ghen <ghen%NetBSD.org@localhost>
date:      Tue May 30 19:50:13 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 7338cde26f58 -r 55b26de79497 games/dm/dm.c
--- a/games/dm/dm.c     Sun May 28 13:44:04 2006 +0000
+++ b/games/dm/dm.c     Tue May 30 19:50:13 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.4.1 2006/05/30 19:50:13 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.4.1 2006/05/30 19:50:13 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