diff options
author | Avuton Olrich <avuton@gmail.com> | 2006-08-20 03:11:12 +0000 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2006-08-20 03:11:12 +0000 |
commit | aa487e6c75a6a9bd70189707f977fd66ba9c12a7 (patch) | |
tree | 6d0e9c2adaefdebe19619863442b6452e3422223 /src/charConv.c | |
parent | 54a1a9f2b638eeb916e32aa656be5c0c9366ddee (diff) | |
download | mpd-aa487e6c75a6a9bd70189707f977fd66ba9c12a7.tar.gz mpd-aa487e6c75a6a9bd70189707f977fd66ba9c12a7.tar.xz mpd-aa487e6c75a6a9bd70189707f977fd66ba9c12a7.zip |
This fixes 5 potential bugs where the conditional would always be true.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4659 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-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; } |