diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/string/strspn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/string/strspn.c b/newlib/libc/string/strspn.c index baf2399..bfa3331 100644 --- a/newlib/libc/string/strspn.c +++ b/newlib/libc/string/strspn.c @@ -41,10 +41,11 @@ strspn (const char *s1, for (c = s2; *c; c++) { if (*s1 == *c) - break; + goto found; } if (*c == '\0') break; +found: s1++; } |