dtstyle: Coverity 87763
This commit is contained in:
@@ -248,7 +248,9 @@ ReadPalette(
|
|||||||
|
|
||||||
/* load the filename into the name element */
|
/* load the filename into the name element */
|
||||||
p = strstr (in_filename, PALETTE_SUFFIX);
|
p = strstr (in_filename, PALETTE_SUFFIX);
|
||||||
|
if(p) {
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
}
|
||||||
strcpy(new_palette->name, in_filename);
|
strcpy(new_palette->name, in_filename);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user