pkgsrc/archivers/unshield/patches/patch-ab
2005-10-31 05:41:41 +00:00

27 lines
805 B
Text

$NetBSD: patch-ab,v 1.2 2005/10/31 05:41:41 minskim Exp $
--- src/unshield.c.orig 2005-07-08 07:08:37.000000000 -0700
+++ src/unshield.c
@@ -2,3 +2,3 @@
#define _BSD_SOURCE 1
-#define _POSIX_C_SOURCE 2
+/* #define _POSIX_C_SOURCE 2 */
#include "../lib/libunshield.h"
@@ -280,6 +280,6 @@ static bool extract_file(Unshield* unshi
default:
- if (!isprint(*p))
+ if (!isprint((unsigned char)*p))
*p = '_';
else if (make_lowercase)
- *p = tolower(*p);
+ *p = tolower((unsigned char)*p);
break;;
@@ -300,6 +300,6 @@ static bool extract_file(Unshield* unshi
{
- if (!isprint(*p))
+ if (!isprint((unsigned char)*p))
*p = '_';
else if (make_lowercase)
- *p = tolower(*p);
+ *p = tolower((unsigned char)*p);
}