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:
Chris Moeller 2014-02-25 22:13:07 -08:00
parent bd5cdb35de
commit 8a618d7a3d

View File

@ -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';
}