projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_3 release
[unix-history]
/
usr
/
src
/
usr.lib
/
libpc
/
REMOVE.c
diff --git
a/usr/src/usr.lib/libpc/REMOVE.c
b/usr/src/usr.lib/libpc/REMOVE.c
index
e95613c
..
ee62678
100644
(file)
--- a/
usr/src/usr.lib/libpc/REMOVE.c
+++ b/
usr/src/usr.lib/libpc/REMOVE.c
@@
-1,6
+1,6
@@
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)REMOVE.c 1.
3 6/10/81
";
+static char sccsid[] = "@(#)REMOVE.c 1.
4 5/19/84
";
#include "h00vars.h"
#include "h00vars.h"
@@
-17,8
+17,8
@@
REMOVE(name, namlim)
* trim trailing blanks, and insure that the name
* will fit into the file structure
*/
* trim trailing blanks, and insure that the name
* will fit into the file structure
*/
- for (cnt = 0; cnt < maxnamlen; )
- if (name[cnt] == '\0' || name[cnt
++
] == ' ')
+ for (cnt = 0; cnt < maxnamlen;
cnt++
)
+ if (name[cnt] == '\0' || name[cnt] == ' ')
break;
if (cnt >= NAMSIZ) {
ERROR("%s: File name too long\n", name);
break;
if (cnt >= NAMSIZ) {
ERROR("%s: File name too long\n", name);