summaryrefslogtreecommitdiffstats
path: root/src/unicode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-08-18 09:12:30 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-08-18 09:12:30 +0200
commit32babefd2d759fd0905ea00cc73c71fe07645938 (patch)
tree47dd9f028bb13f1ef4150bddccda28bfab283f5f /src/unicode.c
parentdb5adf256ef5341ea5fcd8c11584c2f468efa8a4 (diff)
unicode.c: shutdown a warning
Diffstat (limited to 'src/unicode.c')
-rw-r--r--src/unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unicode.c b/src/unicode.c
index e5dcda7..b499ac2 100644
--- a/src/unicode.c
+++ b/src/unicode.c
@@ -31,7 +31,7 @@
int UCSle2str(char *to, const uint16_t *from, const unsigned int len)
{
unsigned int i;
- for (i = 0; (i < len) && from[i]; i++)
+ for (i = 0; i < len && le16(from[i])!=0; i++)
{
if (le16(from[i]) & 0xff00)
to[i] = '?';