diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/print_cups.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 6e62306d67..593c5c7a1f 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -1298,7 +1298,9 @@ bool cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer) { DEBUG(5,("cups_pull_comment_location: Using cups comment: %s\n", attr->values[0].string.text)); - pstrcpy(printer->comment,attr->values[0].string.text); + strlcpy(printer->comment, + attr->values[0].string.text, + sizeof(printer->comment)); } /* Grab the location if we don't have one */ |