Source-Changes-HG archive

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

[src/trunk]: src/bin/sh %d is 12 chars, not 10 chars. hinted by deraadt



details:   https://anonhg.NetBSD.org/src/rev/8f448ba5fb92
branches:  trunk
changeset: 545701:8f448ba5fb92
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Apr 15 07:40:56 2003 +0000

description:
%d is 12 chars, not 10 chars.  hinted by deraadt

diffstat:

 bin/sh/options.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cdb60bed0d8d -r 8f448ba5fb92 bin/sh/options.c
--- a/bin/sh/options.c  Tue Apr 15 07:37:34 2003 +0000
+++ b/bin/sh/options.c  Tue Apr 15 07:40:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: options.c,v 1.33 2003/01/22 20:36:04 dsl Exp $ */
+/*     $NetBSD: options.c,v 1.34 2003/04/15 07:40:56 itojun Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)options.c  8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: options.c,v 1.33 2003/01/22 20:36:04 dsl Exp $");
+__RCSID("$NetBSD: options.c,v 1.34 2003/04/15 07:40:56 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -406,7 +406,7 @@
        int done = 0;
        int ind = 0;
        int err = 0;
-       char s[10];
+       char s[12];
 
        if ((p = *optpptr) == NULL || *p == '\0') {
                /* Current word is done, advance */



Home | Main Index | Thread Index | Old Index