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

@@ -726,7 +726,7 @@ parse_omit_name(oc, font_data, pattern)
}
}
strcpy(buf, pattern);
snprintf(buf, sizeof(buf), "%s", pattern);
length = strlen(pattern);
last = buf + length - 1;
if (length > 1 && *last == '*' && *(last - 1) == '-') {