summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-07-28 12:59:48 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-07-28 12:59:48 +0200
commit031000493db48d6a312b469b3283f1e3f18f6bbf (patch)
treecf24fffb5ac40c7455238f56e9e6cfdce9f1e5d4 /tools.h
parent6ab7d34010a6c34d262513c51c30436a133e3489 (diff)
downloadvdr-031000493db48d6a312b469b3283f1e3f18f6bbf.tar.gz
vdr-031000493db48d6a312b469b3283f1e3f18f6bbf.tar.bz2
Fixed a problem with characters >0x7F in the modified version of skipspace()
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools.h b/tools.h
index 17875d0b..90b4115f 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.105 2007/07/28 09:43:04 kls Exp $
+ * $Id: tools.h 1.106 2007/07/28 12:54:49 kls Exp $
*/
#ifndef __TOOLS_H
@@ -175,9 +175,9 @@ char *strreplace(char *s, char c1, char c2);
char *strreplace(char *s, const char *s1, const char *s2); ///< re-allocates 's' and deletes the original string if necessary!
inline char *skipspace(const char *s)
{
- if (*s > ' ') // most strings don't have any leading space, so handle this case as fast as possible
+ if ((uchar)*s > ' ') // most strings don't have any leading space, so handle this case as fast as possible
return (char *)s;
- while (*s && *s <= ' ') // avoiding isspace() here, because it is much slower
+ while (*s && (uchar)*s <= ' ') // avoiding isspace() here, because it is much slower
s++;
return (char *)s;
}