aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2020-12-15 17:09:39 -0500
committerGravatar Benjamin Barenblat <bbaren@google.com>2020-12-15 17:09:39 -0500
commiteec23dbef5d201ea19522c0e25013b63329a1d2b (patch)
tree0f1411b83af7cf107745648a859e30821c312717
parenta51cd94e05891032f75c0061b4d570c33f0996c2 (diff)
Add a missing `void *`-to-`char *` castmaster
`NSData-bytes` returns a `const void *`. Cast it to a `const char *` before trying to use with a `%s` format specifier.
-rw-r--r--Foundation/GTMRegex.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Foundation/GTMRegex.m b/Foundation/GTMRegex.m
index 3d6f96f..c62d140 100644
--- a/Foundation/GTMRegex.m
+++ b/Foundation/GTMRegex.m
@@ -659,7 +659,7 @@ static NSString *const kReplacementPattern =
[self class], self,
regex_,
(allSegments_ ? "YES" : "NO"),
- (int)(MIN(len, 20)), [utf8StrBuf_ bytes],
+ (int)(MIN(len, 20)), (const char *)[utf8StrBuf_ bytes],
(len > 20 ? "..." : "")];
}