Fix a address sanitizer warning.
This commit is contained in:
1 parent
8a88ec8b06
commit
393a9ea957
1 file changed
+1
-1
@@ -282,7 +282,7 @@ static NSArray<SBVobSubTrack *> * LoadVobSubSubtitles(NSURL *theDirectory, NSStr
|
||||
for (NSString *line in vobTrack->privateData) {
|
||||
if ([line hasPrefix:@"palette: "]) {
|
||||
const char *palette = [line UTF8String];
|
||||
UInt32 colorPalette[16];
|
||||
UInt32 colorPalette[32];
|
||||
|
||||
if (palette != NULL) {
|
||||
sscanf(palette, "palette: %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx",
|
||||
|
||||
Reference in new issue
Block a user