Files
pkgsrc-ng/ham/xlog/patches/patch-src_dxcc_c
2016-01-21 23:40:00 +01:00

16 lines
548 B
Plaintext

$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));