summaryrefslogtreecommitdiffstats
path: root/source/utils/make_smbcodepage.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-12 22:11:24 +0000
committerJeremy Allison <jra@samba.org>1998-05-12 22:11:24 +0000
commitf257d2e4bafd3944cca737699913a8d868279ca6 (patch)
tree4476e8b1cb32c04aeca6d0b89034a9982ee8da9e /source/utils/make_smbcodepage.c
parentca7bf597e4781ee1a82dc231584b16624d99e9f3 (diff)
downloadsamba-f257d2e4bafd3944cca737699913a8d868279ca6.tar.gz
samba-f257d2e4bafd3944cca737699913a8d868279ca6.tar.xz
samba-f257d2e4bafd3944cca737699913a8d868279ca6.zip
includes.h: SunOS doesn't have strcasecmp, solaris versions prior to 2.6 don't
have vsnprintf. locking_slow.c: slight tidy. make_smbcodepage.c: Use safe_strcpy instead of pstrcpy. nmbd_winsserver.c: Use pstrcpy instead of fstrcpy. smbmount.c: Fixed reported bug. util.c: Removed old fstrcpy/fstrcat functions. Jeremy.
Diffstat (limited to 'source/utils/make_smbcodepage.c')
-rw-r--r--source/utils/make_smbcodepage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/make_smbcodepage.c b/source/utils/make_smbcodepage.c
index ce45a7bc602..b0970a7d251 100644
--- a/source/utils/make_smbcodepage.c
+++ b/source/utils/make_smbcodepage.c
@@ -94,7 +94,7 @@ int clean_data( char **buf, uint32 *size)
if(*cp == '\0')
continue;
- pstrcpy(newbuf_p, cp);
+ safe_strcpy(newbuf_p, cp, *size - (newbuf_p - newbuf));
num_lines++;
newbuf_p += (strlen(newbuf_p) + 1);
}