summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/subreader.c b/subreader.c
index 0776ea2b17..4c1c0a8181 100644
--- a/subreader.c
+++ b/subreader.c
@@ -1729,18 +1729,18 @@ char * strreplace( char * in,char * what,char * whereof )
static void strcpy_trim(char *d, char *s)
{
// skip leading whitespace
- while (*s && !isalnum(*s)) {
+ while (*s && isspace(*s)) {
s++;
}
for (;;) {
// copy word
- while (*s && isalnum(*s)) {
+ while (*s && !isspace(*s)) {
*d = tolower(*s);
s++; d++;
}
if (*s == 0) break;
// trim excess whitespace
- while (*s && !isalnum(*s)) {
+ while (*s && isspace(*s)) {
s++;
}
if (*s == 0) break;
@@ -1779,7 +1779,7 @@ static void strcpy_get_ext(char *d, char *s)
static int whiteonly(char *s)
{
while (*s) {
- if (isalnum(*s)) return 0;
+ if (!isspace(*s)) return 0;
s++;
}
return 1;