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:
d4db22f
)
doc/util/dbtoman: Coverity 89668
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 01:09:06 +0000
(
02:09
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 01:09:06 +0000
(
02:09
+0100)
cde/doc/util/dbtoman/instant/tables.c
patch
|
blob
|
history
diff --git
a/cde/doc/util/dbtoman/instant/tables.c
b/cde/doc/util/dbtoman/instant/tables.c
index 7c223e3e77029b52dba06aa41ec39595ae1a8186..86c879758d7a2da75cfaf83ae6f9fdb6f44b3c80 100644
(file)
--- a/
cde/doc/util/dbtoman/instant/tables.c
+++ b/
cde/doc/util/dbtoman/instant/tables.c
@@
-1836,9
+1836,9
@@
TblDoColSpec(short number, /* this column number */
tcsp->aligncharoff = ( pcsp ) ? pcsp->aligncharoff : 0;
if ( cp = FindAttValByName(ep, "COLWIDTH") )
- s
trcpy(tcsp->colwidth
, cp);
+ s
nprintf(tcsp->colwidth, sizeof(tcsp->colwidth), "%s"
, cp);
else
- s
trcpy(tcsp->colwidth
, ( pcsp ) ? pcsp->colwidth : "");
+ s
nprintf(tcsp->colwidth, sizeof(tcsp->colwidth), "%s"
, ( pcsp ) ? pcsp->colwidth : "");
if ( cp = FindAttValByName(ep, "COLSEP") )
tcsp->colsep = !strcmp(cp, "1");