summaryrefslogtreecommitdiffstats
path: root/source3/printing/printing.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-01-26 17:10:44 -0800
committerJeremy Allison <jra@samba.org>2012-01-27 03:43:21 +0100
commita9e03337c1dbf13dcab5bf1f825bc1853b61256e (patch)
tree1496b68a25924905151792f6dd1d37836c598b90 /source3/printing/printing.c
parent17a77ea9b484a7040098fc66cf78625df4c14c65 (diff)
downloadsamba-a9e03337c1dbf13dcab5bf1f825bc1853b61256e.tar.gz
samba-a9e03337c1dbf13dcab5bf1f825bc1853b61256e.tar.xz
samba-a9e03337c1dbf13dcab5bf1f825bc1853b61256e.zip
Finally remove all malloc()'s from the substitute code. Now totally
talloc() based. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jan 27 03:43:21 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/printing/printing.c')
-rw-r--r--source3/printing/printing.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 019fc65c23a..f3a9a9a2538 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2739,9 +2739,7 @@ WERROR print_job_start(const struct auth_session_info *server_info,
path, server_info->unix_token->gid,
server_info->unix_info->sanitized_username,
server_info->info->domain_name,
- pjob.user, sizeof(pjob.user)-1);
- /* ensure NULL termination */
- pjob.user[sizeof(pjob.user)-1] = '\0';
+ pjob.user, sizeof(pjob.user));
fstrcpy(pjob.queuename, lp_const_servicename(snum));