fixed compiler errors

This commit is contained in:
Martin Haimberger
2015-07-15 03:17:38 -07:00
parent 6ab0187d84
commit e682329eeb
5 changed files with 6 additions and 3 deletions

View File

@@ -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;