aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-06-23 16:24:55 +0000
committerAndreas Jaeger <aj@suse.de>2000-06-23 16:24:55 +0000
commit282c98b03c0881ec9ed43ed11d5d569ea60dd358 (patch)
tree83a3637fa7a4693f52de60b6403464349f135d62
parenta4b33f0368b82cc43b55089bfaf347c577eaa754 (diff)
downloadglibc-282c98b03c0881ec9ed43ed11d5d569ea60dd358.tar
glibc-282c98b03c0881ec9ed43ed11d5d569ea60dd358.tar.gz
glibc-282c98b03c0881ec9ed43ed11d5d569ea60dd358.tar.bz2
glibc-282c98b03c0881ec9ed43ed11d5d569ea60dd358.zip
* iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
-rw-r--r--iconv/gconv_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/gconv_int.h b/iconv/gconv_int.h
index 44d4d36445..8333a215c7 100644
--- a/iconv/gconv_int.h
+++ b/iconv/gconv_int.h
@@ -129,7 +129,7 @@ extern struct gconv_module *__gconv_modules_db;
char *result; \
char *tmp; \
size_t cnt = 0; \
- size_t suffix_len = suffix == NULL ? 0 : strlen (suffix); \
+ size_t suffix_len = (suffix) == NULL ? 0 : strlen (suffix); \
\
while (*cp != '\0') \
if (*cp++ == '/') \