diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-10-23 16:03:41 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-10-23 16:03:41 +0000 |
commit | a78182e121fa3b6b56bdb39f23d5269268f17685 (patch) | |
tree | e6f701be405fa79fa52eb9027398afd68ecda6b2 /gnu/usr.sbin | |
parent | 53e33d57450b9e5d07cc47fce6afa0727f7cedc7 (diff) | |
download | FreeBSD-src-a78182e121fa3b6b56bdb39f23d5269268f17685.zip FreeBSD-src-a78182e121fa3b6b56bdb39f23d5269268f17685.tar.gz |
Eek! When we encounter a '+' or '-', the resulting action should be
'continue' rather than 'break'.
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r-- | gnu/usr.sbin/yp_mkdb/yp_mkdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.sbin/yp_mkdb/yp_mkdb.c b/gnu/usr.sbin/yp_mkdb/yp_mkdb.c index 932f323..5d2d4b3 100644 --- a/gnu/usr.sbin/yp_mkdb/yp_mkdb.c +++ b/gnu/usr.sbin/yp_mkdb/yp_mkdb.c @@ -20,7 +20,7 @@ */ /* - * $Id: yp_mkdb.c,v 1.3 1995/05/30 05:05:26 rgrimes Exp $ + * $Id: yp_mkdb.c,v 1.4 1995/10/11 14:30:51 wpaul Exp $ */ #define BUFFERSIZE 4096 @@ -151,7 +151,7 @@ load( char *FileName, char *DbName) fgets(Buffer, BUFFERSIZE, infile); if (feof(infile)) break; - if (Buffer[0] == '+' || Buffer[0] == '-') break; + if (Buffer[0] == '+' || Buffer[0] == '-') continue; r=strlen(Buffer)-1; if (Buffer[r]!='\n' && r>=BUFFERSIZE) { fprintf(stderr, "%s: Buffer overflow\n", FileName); @@ -169,7 +169,7 @@ load( char *FileName, char *DbName) for (; Buffer[r]; r++) if (Buffer[r]!=' ' && Buffer[r]!='\t') break; - if (Buffer[r] == '+' || Buffer[r] == '-') break; + if (Buffer[r] == '+' || Buffer[r] == '-') continue; key.data=Buffer; key.size=strlen(Buffer); data.data=Buffer+r; data.size=strlen(Buffer+r); |