mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
slprintf() takes a size argument
(This used to be commit 4e142ba3749d2eb45687425ff87c153fb6147056)
This commit is contained in:
parent
7488f61d3c
commit
901ffd7ca8
@ -327,7 +327,7 @@ static NTSTATUS cmd_spoolss_enum_printers(struct cli_state *cli,
|
||||
if (argc == 3)
|
||||
fstrcpy(name, argv[2]);
|
||||
else {
|
||||
slprintf(name, "\\\\%s", cli->desthost);
|
||||
slprintf(name, sizeof(name)-1, "\\\\%s", cli->desthost);
|
||||
strupper(name);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user