summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-22 07:02:00 +0200
committerIra Cooper <ira@samba.org>2014-08-01 22:10:23 +0200
commit9b24abe2f7961c6c54ddc9cd90ff09bf429dd3c0 (patch)
treeff6d722675f28cab4a5140eeec81a74180ced37d /lib
parenta0583976da2ba09da0fd94f739ed4f5851e2a858 (diff)
downloadsamba-9b24abe2f7961c6c54ddc9cd90ff09bf429dd3c0.tar.gz
fix unstrcpy
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=10735 CVE-2014-3560: unstrcpy macro length is invalid Autobuild-User(master): Ira Cooper <ira@samba.org> Autobuild-Date(master): Fri Aug 1 22:10:23 CEST 2014 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/util/string_wrappers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/string_wrappers.h b/lib/util/string_wrappers.h
index 5f9d5684e62..243fafc27ef 100644
--- a/lib/util/string_wrappers.h
+++ b/lib/util/string_wrappers.h
@@ -51,7 +51,7 @@ do { \
#define unstrcpy(d,s) \
do { \
const char *_unstrcpy_src = (const char *)(s); \
- strlcpy((d),_unstrcpy_src ? _unstrcpy_src : "",sizeof(fstring)); \
+ strlcpy((d),_unstrcpy_src ? _unstrcpy_src : "",sizeof(unstring)); \
} while (0)
#ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS