Skip to content

Commit 503acf1

Browse files
author
chad-iris
committed
Fix terminator placement following extra header serialization
1 parent 779d8e9 commit 503acf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extraheaders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ mseh_set_path (MS3Record *msr, const char *path, void *value, char type)
299299
msr->extra = serialized;
300300
msr->extralength = (uint16_t)serializationsize - 1;
301301

302-
msr->extra[serializationsize] = '\0';
302+
msr->extra[serializationsize - 1] = '\0';
303303

304304
return 0;
305305
#undef EVALSET

0 commit comments

Comments
 (0)