Darwin: -Wformat-diag fix (PR93641)
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 10 Feb 2020 19:29:30 +0000 (20:29 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 10 Feb 2020 19:31:39 +0000 (20:31 +0100)
commitc88ffcc6f4f46223c219014729f33f6cb9649928
tree6fd91f0fc7707f21136c522d39c8efbb6dd9812e
parent7848054c68bad6e2aa40cb59f77cc99bd8448d52
Darwin: -Wformat-diag fix (PR93641)

The length used for the comparison for 'CFStringRef' was only comparing
for 'CFString', potentially allowing mismatched identifiers.

2020-02-10  Iain Sandoe  <iain@sandoe.co.uk>

PR other/93641
* config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
argument of strncmp.
gcc/ChangeLog
gcc/config/darwin-c.c