Finally remove all malloc()'s from the substitute code. Now totally
[ira/wip.git] / source3 / printing / printing.c
index 019fc65c23a8c7689caac0d73d2e29ff9a421b59..f3a9a9a2538d1ef88e7b1e40e87a30ed4de5f10c 100644 (file)
@@ -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));