Source-Changes-HG archive

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

[src/trunk]: src/libexec/ftpd Don't use undefined C expression. Patch supplie...



details:   https://anonhg.NetBSD.org/src/rev/db307ed2567d
branches:  trunk
changeset: 476925:db307ed2567d
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Oct 04 17:36:52 1999 +0000

description:
Don't use undefined C expression. Patch supplied by David A. Holland
in PR bin/8534.

diffstat:

 libexec/ftpd/ftpcmd.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e6980cef4f14 -r db307ed2567d libexec/ftpd/ftpcmd.y
--- a/libexec/ftpd/ftpcmd.y     Mon Oct 04 17:36:37 1999 +0000
+++ b/libexec/ftpd/ftpcmd.y     Mon Oct 04 17:36:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpcmd.y,v 1.38 1999/09/06 06:01:44 simonb Exp $       */
+/*     $NetBSD: ftpcmd.y,v 1.39 1999/10/04 17:36:52 tron Exp $ */
 
 /*
  * Copyright (c) 1985, 1988, 1993, 1994
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpcmd.y   8.3 (Berkeley) 4/6/94";
 #else
-__RCSID("$NetBSD: ftpcmd.y,v 1.38 1999/09/06 06:01:44 simonb Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.39 1999/10/04 17:36:52 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -1516,7 +1516,7 @@
        dostr1:
                if (cbuf[cpos] == ' ') {
                        cpos++;
-                       state = state == OSTR ? STR2 : ++state;
+                       state = state == OSTR ? STR2 : state+1;
                        return (SP);
                }
                break;



Home | Main Index | Thread Index | Old Index