fix-strdupa.patch 450 B

1234567891011121314
  1. diff --git a/include/string.h b/include/string.h
  2. index 43ad0942..35df7527 100644
  3. --- a/include/string.h
  4. +++ b/include/string.h
  5. @@ -88,7 +88,7 @@ void explicit_bzero (void *, size_t);
  6. #endif
  7. #ifdef _GNU_SOURCE
  8. -#define strdupa(x) strcpy(alloca(strlen(x)+1),x)
  9. +#define strdupa(x) strcpy((char*)alloca(strlen(x)+1),x)
  10. int strverscmp (const char *, const char *);
  11. char *strchrnul(const char *, int);
  12. char *strcasestr(const char *, const char *);