summaryrefslogtreecommitdiff
path: root/source3/printing/print_cups.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-27 19:05:08 -0800
committerJeremy Allison <jra@samba.org>2007-11-27 19:05:08 -0800
commit0bc4ff7b287e2cd6f7b225861d6c3fda9347adfc (patch)
treefb5776c0ed5c39b8c62f446645ee1479b7cab63d /source3/printing/print_cups.c
parent93bfb6ca542e1e99ae7ae93fca94a0e33d99bca5 (diff)
downloadsamba-0bc4ff7b287e2cd6f7b225861d6c3fda9347adfc.tar.gz
samba-0bc4ff7b287e2cd6f7b225861d6c3fda9347adfc.tar.bz2
samba-0bc4ff7b287e2cd6f7b225861d6c3fda9347adfc.zip
Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.c
Jeremy. (This used to be commit b5a2a1e3f82a0d319fc9a1d76f5166150680f4d4)
Diffstat (limited to 'source3/printing/print_cups.c')
-rw-r--r--source3/printing/print_cups.c4
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 */