1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.c

Jeremy.
(This used to be commit b5a2a1e3f8)
This commit is contained in:
Jeremy Allison 2007-11-27 19:05:08 -08:00
parent 93bfb6ca54
commit 0bc4ff7b28
4 changed files with 311 additions and 235 deletions

View File

@ -312,7 +312,7 @@ typedef struct nt_printer_info_level_2
fstring sharename;
fstring portname;
fstring drivername;
pstring comment;
char comment[1024];
fstring location;
NT_DEVICEMODE *devmode;
fstring sepfile;

View File

@ -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 */

View File

@ -296,7 +296,7 @@ static bool add_printers_by_registry( REGSUBKEY_CTR *subkeys )
if ( snum == -1 ) {
fstrcpy( info2.printername, printername );
fstrcpy( info2.sharename, printername );
if ( !add_printer_hook( NULL, &printer ) ) {
if ( !add_printer_hook(talloc_tos(), NULL, &printer ) ) {
DEBUG(0,("add_printers_by_registry: Failed to add printer [%s]\n",
printername));
}

File diff suppressed because it is too large Load Diff