dtprintinfo: Resolve format-overflow issues

This commit is contained in:
Peter Howkins
2021-12-23 19:50:38 +00:00
committed by Jon Trulson
parent bf266ee14b
commit 16c3ed3650
3 changed files with 4 additions and 4 deletions

View File

@@ -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')
{