summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpcclient/cmd_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 181ef97dec..ba6d55cebe 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -860,7 +860,7 @@ BOOL init_drv_info_3_members (DRIVER_INFO_3 *info, char *args)
{
info->dependentfiles[i] = (uint16)str2[i];
}
- info->dependentfiles[len+1] = '\0';
+ info->dependentfiles[len] = '\0';
return True;
}