replace: Fix bug 11455
authorVolker Lendecke <vl@samba.org>
Tue, 18 Aug 2015 18:57:27 +0000 (20:57 +0200)
committerRalph Böhme <slow@samba.org>
Wed, 19 Aug 2015 09:22:38 +0000 (11:22 +0200)
Don't call rep_strtoull recursively

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Aug 19 11:22:38 CEST 2015 on sn-devel-104

lib/replace/replace.c

index 0806ce36fa91c375c1f03b1755440bdca57e6e94..798990a9abc82cf295858b44aadbbc5dedf05a04 100644 (file)
@@ -538,6 +538,7 @@ long long int rep_strtoll(const char *str, char **endptr, int base)
 }
 #else
 #ifdef HAVE_BSD_STRTOLL
+#undef strtoll
 long long int rep_strtoll(const char *str, char **endptr, int base)
 {
        long long int nb = strtoll(str, endptr, base);