mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
fixed compiler errors
This commit is contained in:
@@ -263,7 +263,7 @@ static rdpPrinter** printer_cups_enum_printers(rdpPrinterDriver* driver)
|
||||
int i;
|
||||
|
||||
num_dests = cupsGetDests(&dests);
|
||||
printers = (rdpPrinter**) calloc(sizeof(rdpPrinter*) * (num_dests + 1));
|
||||
printers = (rdpPrinter**) calloc(1, sizeof(rdpPrinter*) * (num_dests + 1));
|
||||
if (!printers)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user