From: Peter Howkins Date: Wed, 4 Jul 2018 01:09:06 +0000 (+0100) Subject: doc/util/dbtoman: Coverity 89668 X-Git-Tag: 2.3.0a~197 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f4222f57d2963fdfaa04304328c2bc5a7527d17;p=oweals%2Fcde.git doc/util/dbtoman: Coverity 89668 --- diff --git a/cde/doc/util/dbtoman/instant/tables.c b/cde/doc/util/dbtoman/instant/tables.c index 7c223e3e..86c87975 100644 --- 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") ) - strcpy(tcsp->colwidth, cp); + snprintf(tcsp->colwidth, sizeof(tcsp->colwidth), "%s", cp); else - strcpy(tcsp->colwidth, ( pcsp ) ? pcsp->colwidth : ""); + snprintf(tcsp->colwidth, sizeof(tcsp->colwidth), "%s", ( pcsp ) ? pcsp->colwidth : ""); if ( cp = FindAttValByName(ep, "COLSEP") ) tcsp->colsep = !strcmp(cp, "1");