dtudcfonted: Resolve further coverity issues

This commit is contained in:
Peter Howkins
2018-03-30 22:09:47 +01:00
parent e507de959e
commit e195df4b50
20 changed files with 51 additions and 44 deletions

View File

@@ -546,7 +546,7 @@ XLCdGenericPart *gen;
Xfree(charsetd->encoding_name);
}
*/
tmp = (char *)Xmalloc(strlen(value[0]+1));
tmp = (char *)Xmalloc(strlen(value[0]) + 1);
strcpy(tmp,value[0]);
charsetd->encoding_name = tmp;
charsetd->xrm_encoding_name =