Fix last minute changes

This commit is contained in:
bnnm 2019-08-10 18:11:30 +02:00
parent 3339b61696
commit 7f8138fbb5
2 changed files with 2 additions and 2 deletions

View File

@ -635,7 +635,7 @@ static int get_xsb_name(char * buf, size_t maxsize, int target_subsong, xwb_head
}
//;VGM_LOG("XSB: name found=%i at %lx\n", xsb.parse_found, xsb.name_offset);
if (!xsb.parse_found || xsb.name[0] == '\0')
if (!xsb.name_len || xsb.name[0] == '\0')
goto fail;
strncpy(buf,xsb.name,maxsize);

View File

@ -55,7 +55,7 @@ static void xsb_check_stream(xsb_header * xsb, int stream_index, int wavebank_in
int cat_len = 2;
if (xsb->name_len + cat_len + name_size + 1 < STREAM_NAME_SIZE) {
strcat(xsb->name + xsb->name_len, "; ");
strcat(xsb->name + xsb->name_len, cat);
strcat(xsb->name + xsb->name_len, name);
}
}