summaryrefslogtreecommitdiff
path: root/src/libopts/tokenize.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-11 10:09:04 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-11 10:09:04 +0100
commite39e8a7624b07411402e6fd33def095ec85d9e16 (patch)
tree7ecb21bf52e5d04f10938ce8a479f13b39b71b9d /src/libopts/tokenize.c
parentbdc380d6f617bfad7e300e4ba2f84b52ed434997 (diff)
downloadgnutls-e39e8a7624b07411402e6fd33def095ec85d9e16.tar.gz
updated libopts
Diffstat (limited to 'src/libopts/tokenize.c')
-rw-r--r--src/libopts/tokenize.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libopts/tokenize.c b/src/libopts/tokenize.c
index 4ca1245cf0..ca0ad53ab3 100644
--- a/src/libopts/tokenize.c
+++ b/src/libopts/tokenize.c
@@ -1,10 +1,10 @@
/*
* This file defines the string_tokenize interface
- * Time-stamp: "2010-07-17 10:40:26 bkorb"
+ * Time-stamp: "2012-01-29 19:02:51 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
- * AutoOpts is Copyright (c) 1992-2011 by Bruce Korb - all rights reserved
+ * AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
*
* AutoOpts is available under any one of two licenses. The license
* in use must be one of these two and the choice is under the control
@@ -87,11 +87,11 @@ copy_raw(ch_t** ppDest, char const ** ppSrc)
switch (*pSrc) {
case NUL: *ppSrc = NULL; return;
case '\r':
- if (*(++pSrc) == '\n')
+ if (*(++pSrc) == NL)
++pSrc;
continue;
- case '\n':
+ case NL:
++pSrc;
continue;
@@ -281,7 +281,7 @@ ao_string_tokenize(char const* str)
default:
str++;
- *(pzDest++) = ch;
+ *(pzDest++) = (unsigned char)ch;
}
} copy_done:;