From 0bc4ff7b287e2cd6f7b225861d6c3fda9347adfc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 27 Nov 2007 19:05:08 -0800 Subject: Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.c Jeremy. (This used to be commit b5a2a1e3f82a0d319fc9a1d76f5166150680f4d4) --- source3/printing/print_cups.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/printing/print_cups.c') 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 */ -- cgit