From d4db22f45ad72830c060618ce66325b4194ff710 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 02:07:10 +0100 Subject: [PATCH] doc/util/dbtoman: Coverity 88244 --- cde/doc/util/dbtoman/instant/tables.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") ) { -- 2.25.1