small oops
authorroot <devnull@localhost>
Wed, 22 May 1996 17:42:35 +0000 (17:42 +0000)
committerroot <devnull@localhost>
Wed, 22 May 1996 17:42:35 +0000 (17:42 +0000)
CVS patchset: 582
CVS date: 1996/05/22 17:42:35

lib/rpmrc.c

index fabaa4e..610f8c7 100644 (file)
@@ -96,8 +96,8 @@ static int readRpmrc(FILE * f, char * fn) {
            }
        }
 
-       /* strip off trailing spaces - chptr is at the end of the line already*/
-       for (chptr--; chptr >= start && isspace(*chptr); chptr++);
+       /* strip trailing spaces - chptr is at the end of the line already*/
+       for (chptr--; chptr >= start && isspace(*chptr); chptr--);
        *(chptr + 1) = '\0';
 
        if (!start[0]) continue;                        /* blank line */