projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6dd25b
)
dtprintinfo: Coverity 88650
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:49:50 +0000
(
01:49
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:49:50 +0000
(
01:49
+0100)
cde/programs/dtprintinfo/UI/DtPrinterIcon.C
patch
|
blob
|
history
diff --git
a/cde/programs/dtprintinfo/UI/DtPrinterIcon.C
b/cde/programs/dtprintinfo/UI/DtPrinterIcon.C
index 385f1d31faa147a092e1c7a9d07c64d6bfcb5788..16ff692639a4b46c21e0339348ed8a0e95af87a5 100644
(file)
--- a/
cde/programs/dtprintinfo/UI/DtPrinterIcon.C
+++ b/
cde/programs/dtprintinfo/UI/DtPrinterIcon.C
@@
-752,17
+752,17
@@
char *DtPrinterIcon::GetPrinterIcon(const char *printer,
{
static char buf[200];
- s
printf(buf
, "%s_Print", printer);
+ s
nprintf(buf, sizeof(buf)
, "%s_Print", printer);
if (_app_mode != INITIALIZE_PRINTERS && DtActionExists(buf))
{
char *iconfile = DtActionIcon(buf);
if (iconfile)
- s
trcpy(buf
, iconfile);
+ s
nprintf(buf, sizeof(buf), "%s"
, iconfile);
else
- s
trcpy(buf
, PRINTER_ICON_FILE);
+ s
nprintf(buf, sizeof(buf), "%s"
, PRINTER_ICON_FILE);
}
else
- s
trcpy(buf
, PRINTER_ICON_FILE);
+ s
nprintf(buf, sizeof(buf), "%s"
, PRINTER_ICON_FILE);
return buf;
}