fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / lib / string.c
index 6307726..a485d75 100644 (file)
@@ -320,7 +320,7 @@ char *strstrip(char *s)
                return s;
 
        end = s + size - 1;
-       while (end != s && isspace(*end))
+       while (end >= s && isspace(*end))
                end--;
        *(end + 1) = '\0';