1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

doc/util/dbtoman: Coverity 88244

This commit is contained in:
Peter Howkins 2018-07-04 02:07:10 +01:00
parent 82e8b80612
commit d4db22f45a

View file

@ -1874,7 +1874,9 @@ TblDoSpanSpec(Element_t * ep, /* element containing spanspec stuff */
Calloc(1, tssp, struct tblspanspec);
if ( cp = FindAttValByName(ep, "SPANNAME") ) strcpy(tssp->name, cp);
if ( cp = FindAttValByName(ep, "SPANNAME") ) {
snprintf(tssp->name, sizeof(tssp->name), "%s", cp);
}
tssp->source = source;
if ( cp = FindAttValByName(ep, "NAMEST") ) {