diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 13:14:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:14 -0700 |
commit | 0c464df22b4d1a488ebe6ae889305a76d517f3d8 (patch) | |
tree | 78d932cf007185e02918ef451e993359f78a9e50 /lib | |
parent | 017e0c8d95fe8212b006e1c14aef8d96fed30674 (diff) | |
download | samba-0c464df22b4d1a488ebe6ae889305a76d517f3d8.tar.gz samba-0c464df22b4d1a488ebe6ae889305a76d517f3d8.tar.bz2 samba-0c464df22b4d1a488ebe6ae889305a76d517f3d8.zip |
Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the original macro auto-added the -1.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/string_wrappers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/string_wrappers.h b/lib/util/string_wrappers.h index 4e4f3ec832..79119348c5 100644 --- a/lib/util/string_wrappers.h +++ b/lib/util/string_wrappers.h @@ -41,8 +41,8 @@ size_t __unsafe_string_function_usage_here_size_t__(void); #endif /* HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS */ -#define safe_strcpy_base(dest, src, base, size) \ - safe_strcpy(dest, src, size-PTR_DIFF(dest,base)-1) +#define strlcpy_base(dest, src, base, size) \ + strlcpy(dest, src, size-PTR_DIFF(dest,base)) /* String copy functions - macro hell below adds 'type checking' (limited, but the best we can do in C) */ |