mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
concatn_doublenull was expecting two nulls after the string to be concatenated
Seems to fix loading in Winamp 5.66, it must be more aggressively reusing (or just not clearing) stuff that was cleared before.
This commit is contained in:
parent
bd5cdb35de
commit
8a618d7a3d
@ -161,7 +161,7 @@ void concatn_doublenull(int length, char * dst, const char * src) {
|
||||
return;
|
||||
}
|
||||
if (i>0) i++;
|
||||
for (j=0;i<length-2 && (src[j] || src[j+1]);i++,j++) dst[i]=src[j];
|
||||
for (j=0;i<length-2 && src[j];i++,j++) dst[i]=src[j];
|
||||
dst[i]='\0';
|
||||
dst[i+1]='\0';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user