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

dtdocbook: Coverity 86996

This commit is contained in:
Peter Howkins 2018-07-04 02:01:15 +01:00
parent 751505e6ab
commit 82e8b80612

View file

@ -353,7 +353,7 @@ SetMapping(
fprintf(stderr, "SetMapping: Map not initialized.\n");
return;
}
strcpy(buf, s);
snprintf(buf, sizeof(buf), "%s", s);
name = val = buf;
while (*val && !IsWhite(*val)) val++; /* point past end of name */
if (*val) {