git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
string: on strstrip(), first remove leading spaces before running over str
[safe/jmp/linux-2.6]
/
lib
/
string.c
diff --git
a/lib/string.c
b/lib/string.c
index
3a912a4
..
765566a
100644
(file)
--- a/
lib/string.c
+++ b/
lib/string.c
@@
-364,8
+364,8
@@
char *strstrip(char *s)
size_t size;
char *end;
+ s = skip_spaces(s);
size = strlen(s);
-
if (!size)
return s;
@@
-374,7
+374,7
@@
char *strstrip(char *s)
end--;
*(end + 1) = '\0';
- return s
kip_spaces(s)
;
+ return s;
}
EXPORT_SYMBOL(strstrip);