diff options
Diffstat (limited to 'src/charConv.c')
-rw-r--r-- | src/charConv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charConv.c b/src/charConv.c index 870e6c3e2..62fc5f68e 100644 --- a/src/charConv.c +++ b/src/charConv.c @@ -122,7 +122,7 @@ char *convStrDup(char *string) iconv(char_conv_iconv, &string, &inleft, &bufferPtr, &outleft); if (outleft == BUFFER_SIZE - || (err < 0 && errno != E2BIG)) { + || (err == -1L && errno != E2BIG)) { free(ret); return NULL; } |