patch-libclamav_ole2_extract_c 520 B

12345678910111213141516
  1. $OpenBSD: patch-libclamav_ole2_extract_c,v 1.16 2016/03/03 02:09:09 sthen Exp $
  2. allow for machine arch where char is unsigned by default (e.g. arm, powerpc)
  3. --- libclamav/ole2_extract.c.orig Fri Jan 15 21:56:37 2016
  4. +++ libclamav/ole2_extract.c Wed Mar 2 23:37:57 2016
  5. @@ -233,7 +233,7 @@ static unsigned char magic_id[] = {0xd0, 0xcf, 0x11, 0
  6. static char *
  7. -get_property_name2(char *name, int size)
  8. +get_property_name2(signed char *name, int size)
  9. {
  10. int i, j;
  11. char *newname;