From: Peter Howkins Date: Wed, 4 Jul 2018 01:07:10 +0000 (+0100) Subject: doc/util/dbtoman: Coverity 88244 X-Git-Tag: 2.3.0a~198 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4db22f45ad72830c060618ce66325b4194ff710;p=oweals%2Fcde.git doc/util/dbtoman: Coverity 88244 --- diff --git a/cde/doc/util/dbtoman/instant/tables.c b/cde/doc/util/dbtoman/instant/tables.c index 73a0dcc6..7c223e3e 100644 --- a/cde/doc/util/dbtoman/instant/tables.c +++ b/cde/doc/util/dbtoman/instant/tables.c @@ -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") ) {