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:
1cd6ca0
)
dtprintinfo: Coverity 88683
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:51:43 +0000
(
01:51
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:51:43 +0000
(
01:51
+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 16ff692639a4b46c21e0339348ed8a0e95af87a5..51f79beffaffda489a473c51ab6a8848d41331cd 100644
(file)
--- a/
cde/programs/dtprintinfo/UI/DtPrinterIcon.C
+++ b/
cde/programs/dtprintinfo/UI/DtPrinterIcon.C
@@
-771,16
+771,16
@@
char *DtPrinterIcon::GetPrinterLabel(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 *label = DtActionLabel(buf);
if (label)
- s
trcpy(buf
, label);
+ s
nprintf(buf, sizeof(buf), "%s"
, label);
else
- s
trcpy(buf
, printer);
+ s
nprintf(buf, sizeof(buf), "%s"
, printer);
}
else
- s
trcpy(buf
, printer);
+ s
nprintf(buf, sizeof(buf), "%s"
, printer);
return buf;
}