summaryrefslogtreecommitdiff
path: root/ham/xlog/patches/patch-src_dxcc_c
blob: 34b39db60bb0bb0929b46484207601e011189298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_dxcc_c,v 1.1 2014/12/15 08:36:40 mef Exp $

error: array subscript has type 'char' [-Werror=char-subscripts]

--- src/dxcc.c~	2013-11-11 13:21:26.000000000 +0900
+++ src/dxcc.c	2014-11-18 09:11:46.000000000 +0900
@@ -520,7 +520,7 @@ readctydata (void)
 	    {
 	      for (i=0; i<strlen(split[7]); i++)
 		{
-		  tmp[i] = toupper(split[7][i]);
+		  tmp[i] = toupper((unsigned char) split[7][i]);
 		}
 	      tmp[i] = '\0';
 	      g_hash_table_insert (prefixes, g_strdup (tmp), GINT_TO_POINTER (programstate.countries));