diff options
author | Gerald Carter <jerry@samba.org> | 2000-08-18 06:03:13 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-08-18 06:03:13 +0000 |
commit | 0136927ed887fc9c085c667fc59130cb3a13f687 (patch) | |
tree | 3239ed1dcb30c99ec2f44f09c4f065e128743a2f /source3 | |
parent | f77c277184ace2db0f36ea5b09473989b3f58f0d (diff) | |
download | samba-0136927ed887fc9c085c667fc59130cb3a13f687.tar.gz samba-0136927ed887fc9c085c667fc59130cb3a13f687.tar.bz2 samba-0136927ed887fc9c085c667fc59130cb3a13f687.zip |
fixed an off by one error where I was tromping on memory
when initializing a driver_info_3 struct. See spoolss_addprinterdriver()
jerry
(This used to be commit 4fad1fc28a0396443e4723d2065860feb283a785)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 2 |
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; } |