From 393a9ea957526dbe8fe3399cc411bb0416e49053 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 22 Jun 2017 19:02:05 +0200 Subject: [PATCH] Fix a address sanitizer warning. --- MP42/MP42VobSubImporter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MP42/MP42VobSubImporter.m b/MP42/MP42VobSubImporter.m index 9d11e46..30f721b 100644 --- a/MP42/MP42VobSubImporter.m +++ b/MP42/MP42VobSubImporter.m @@ -282,7 +282,7 @@ static NSArray * 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",