[PATCH] replace: Fix bug 11455

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Aug 19 05:39:27 UTC 2015


Hi!

Review&push appreciated!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From f0a660d150deec45a3f57dc6d423c17749b8aa07 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Tue, 18 Aug 2015 20:57:27 +0200
Subject: [PATCH] replace: Fix bug 11455

Don't call rep_strtoull recursively

Signed-off-by: Volker Lendecke <vl at samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455
---
 lib/replace/replace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index 0806ce3..798990a 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -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);
-- 
1.9.1



More information about the samba-technical mailing list