dtprintinfo: Resolve format-overflow issues
This commit is contained in:
committed by
Jon Trulson
parent
bf266ee14b
commit
16c3ed3650
@@ -67,7 +67,7 @@ DtPrinterIcon::DtPrinterIcon(DtMainW *mainW, AnyUI *parent, Queue *que,
|
||||
if (app_mode == INITIALIZE_PRINTERS)
|
||||
return;
|
||||
|
||||
char *buf = new char[300];
|
||||
char *buf = new char[sizeof(DtPrinterIcon::homeDir) + 32];
|
||||
struct stat statbuff;
|
||||
if (*homeDir == '\0')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user