FX <fxcoud...@gmail.com> writes:

>> Index: gcc/config/darwin-driver.c
>> ===================================================================
>> --- gcc/config/darwin-driver.c       (revision 215234)
>> +++ gcc/config/darwin-driver.c       (working copy)
>> @@ -105,7 +103,7 @@ darwin_default_min_version (unsigned int
>>    const unsigned int argc = *decoded_options_count;
>>    struct cl_decoded_option *const argv = *decoded_options;
>>    unsigned int i;
>> -  static char new_flag[sizeof ("10.0.0") + 6];
>> +  static char new_flag[sizeof ("10.10.0") + 6];

That should be allocated in darwin_find_version_from_kernel, using
asprintf, and static doesn't make sense either.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to