diff options
author | nate <nate@FreeBSD.org> | 1995-03-31 07:45:33 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1995-03-31 07:45:33 +0000 |
commit | 02981a52b9b7d28ced57a7a8115421fdd16789eb (patch) | |
tree | 958f60d7dbf93543b5943afdbdf191d284685c48 /gnu/usr.bin/cvs/lib/myndbm.c | |
parent | 4de36c4e9835a2fa1c9db2a6d16811ace584305a (diff) | |
download | FreeBSD-src-02981a52b9b7d28ced57a7a8115421fdd16789eb.zip FreeBSD-src-02981a52b9b7d28ced57a7a8115421fdd16789eb.tar.gz |
Original sources from CVS-1.4A2 munged to fit our directory structure.
Diffstat (limited to 'gnu/usr.bin/cvs/lib/myndbm.c')
-rw-r--r-- | gnu/usr.bin/cvs/lib/myndbm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/cvs/lib/myndbm.c b/gnu/usr.bin/cvs/lib/myndbm.c index 8069698..33ef49c 100644 --- a/gnu/usr.bin/cvs/lib/myndbm.c +++ b/gnu/usr.bin/cvs/lib/myndbm.c @@ -2,7 +2,7 @@ * Copyright (c) 1992, Brian Berliner * * You may distribute under the terms of the GNU General Public License as - * specified in the README file that comes with the CVS 1.3 kit. + * specified in the README file that comes with the CVS 1.4 kit. * * A simple ndbm-emulator for CVS. It parses a text file of the format: * @@ -18,7 +18,8 @@ #ifdef MY_NDBM #ifndef lint -static char rcsid[] = "@(#)myndbm.c 1.5 92/03/31"; +static char rcsid[] = "$CVSid: @(#)myndbm.c 1.7 94/09/23 $"; +USE(rcsid) #endif static void mydbm_load_file (); @@ -138,7 +139,7 @@ mydbm_load_file (fp, list) for (cont = 0; fgets (line, sizeof (line), fp) != NULL;) { - if ((cp = rindex (line, '\n')) != NULL) + if ((cp = strrchr (line, '\n')) != NULL) *cp = '\0'; /* strip the newline */ /* |