BSD 4_3 release
[unix-history] / usr / src / usr.lib / libpc / REMOVE.c
index e95613c..ee62678 100644 (file)
@@ -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);