summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-10 19:36:34 +0000
committerJeremy Allison <jra@samba.org>2000-11-10 19:36:34 +0000
commitc1900772ce6fdedc5c380d88f3640107d52e2096 (patch)
tree2751cd4bb9ffd370f8651f941c83b4a488e1787d /source3/rpc_parse/parse_misc.c
parent3c330068adb081499285d20c8d299d7f70aaf603 (diff)
downloadsamba-c1900772ce6fdedc5c380d88f3640107d52e2096.tar.gz
samba-c1900772ce6fdedc5c380d88f3640107d52e2096.tar.bz2
samba-c1900772ce6fdedc5c380d88f3640107d52e2096.zip
printing/nt_printing.c: use getpwuid not smbgetpwuid. Canonicalize printernames.
printing/printing.c: Insure fix for malloc of zero. rpc_parse/parse_misc.c: Enusre UNISTR's are zero filled. rpc_parse/parse_spoolss.c: Correct INFO_6 - differs between pre-releases of W2K and shipping build. rpc_server/srv_spoolss_nt.c: Canonicalize printernames. Jeremy. (This used to be commit b17e23a8ff2b44540726968355a4b7e26f244f3b)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r--source3/rpc_parse/parse_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 93f47bbc7a..859a800771 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -494,6 +494,8 @@ void init_unistr(UNISTR *str, const char *buf)
if (str->buffer == NULL)
smb_panic("init_unistr: malloc fail\n");
+ memset(str->buffer, '\0', len);
+
/* store the string (null-terminated copy) */
dos_struni2((char *)str->buffer, buf, len);
}