]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
str_to_*(): Fixed them to actually work.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Apr 2010 23:43:55 +0000 (02:43 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Apr 2010 23:43:55 +0000 (02:43 +0300)
--HG--
branch : HEAD

src/lib/strnum.c

index e50316deb67c697645dcfc0f528fcb8263334e6b..b9d32d24ad182fa2dbfb54c13ceb157aa54f8165 100644 (file)
@@ -97,7 +97,7 @@ int str_to_uintmax(const char *str, uintmax_t *num_r)
                }
                n = next + (*str - '0');
        }
-       if (str != '\0')
+       if (*str != '\0')
                return -1;
        *num_r = n;
        return 0;