summaryrefslogtreecommitdiff
path: root/devel/libinstaller/patches/patch-ad
blob: e5a457f1cf4e9f18e7e22e1f86b6e046c0e3cc29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.1 2005/02/20 00:57:39 xtraeme Exp $

--- package.c.orig	2005-02-20 01:38:02.000000000 +0100
+++ package.c	2005-02-20 01:38:29.000000000 +0100
@@ -110,7 +110,7 @@
 		 * Strip any trailing whitespace.
 		 */
 		while (strlen(rpkg_name) > 0 &&
-		       isspace(rpkg_name[strlen(rpkg_name) - 1])) {
+		       isspace((int)rpkg_name[strlen(rpkg_name) - 1])) {
 			rpkg_name[strlen(rpkg_name) - 1] = '\0';
 		}
 
@@ -184,7 +184,7 @@
 			 * Strip any trailing whitespace.
 			 */
 			while (strlen(rpkg_name) > 0 &&
-			       isspace(rpkg_name[strlen(rpkg_name) - 1])) {
+			       isspace((int)rpkg_name[strlen(rpkg_name) - 1])) {
 				rpkg_name[strlen(rpkg_name) - 1] = '\0';
 			}