patch-libclamav_vba_extract_c 537 B

12345678910111213141516
  1. $OpenBSD: patch-libclamav_vba_extract_c,v 1.11 2015/12/01 23:25:09 sthen Exp $
  2. allow for machine arch where char is unsigned by default (e.g. arm, powerpc)
  3. --- libclamav/vba_extract.c.orig Fri Sep 18 21:48:45 2015
  4. +++ libclamav/vba_extract.c Tue Dec 1 22:19:26 2015
  5. @@ -99,7 +99,7 @@ vba_endian_convert_32(uint32_t value, int big_endian)
  6. static char *
  7. -get_unicode_name(const char *name, int size, int big_endian)
  8. +get_unicode_name(const signed char *name, int size, int big_endian)
  9. {
  10. int i, increment;
  11. char *newname, *ret;