mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
doc/util/dbtoman: Coverity 89668
This commit is contained in:
parent
d4db22f45a
commit
5f4222f57d
1 changed files with 2 additions and 2 deletions
|
@ -1836,9 +1836,9 @@ TblDoColSpec(short number, /* this column number */
|
||||||
tcsp->aligncharoff = ( pcsp ) ? pcsp->aligncharoff : 0;
|
tcsp->aligncharoff = ( pcsp ) ? pcsp->aligncharoff : 0;
|
||||||
|
|
||||||
if ( cp = FindAttValByName(ep, "COLWIDTH") )
|
if ( cp = FindAttValByName(ep, "COLWIDTH") )
|
||||||
strcpy(tcsp->colwidth, cp);
|
snprintf(tcsp->colwidth, sizeof(tcsp->colwidth), "%s", cp);
|
||||||
else
|
else
|
||||||
strcpy(tcsp->colwidth, ( pcsp ) ? pcsp->colwidth : "");
|
snprintf(tcsp->colwidth, sizeof(tcsp->colwidth), "%s", ( pcsp ) ? pcsp->colwidth : "");
|
||||||
|
|
||||||
if ( cp = FindAttValByName(ep, "COLSEP") )
|
if ( cp = FindAttValByName(ep, "COLSEP") )
|
||||||
tcsp->colsep = !strcmp(cp, "1");
|
tcsp->colsep = !strcmp(cp, "1");
|
||||||
|
|
Loading…
Reference in a new issue