Ticket #53605: patch-constchar.diff
File patch-constchar.diff, 604 bytes (added by RJVB (René Bertin), 8 years ago) |
---|
-
darwin-driver.c
old new 299 299 if (vers_string != NULL) 300 300 { 301 301 char *asm_major = NULL; 302 c har *first_period = strchr(vers_string, '.');302 const char *first_period = strchr(vers_string, '.'); 303 303 if (first_period != NULL) 304 304 { 305 c har *second_period = strchr(first_period+1, '.');305 const char *second_period = strchr(first_period+1, '.'); 306 306 if (second_period != NULL) 307 307 asm_major = xstrndup (vers_string, second_period-vers_string); 308 308 else