diff options
Diffstat (limited to 'ham/dpbox/patches/patch-ag')
-rw-r--r-- | ham/dpbox/patches/patch-ag | 57 |
1 files changed, 52 insertions, 5 deletions
diff --git a/ham/dpbox/patches/patch-ag b/ham/dpbox/patches/patch-ag index fd04609efdf..97b5b81ce6f 100644 --- a/ham/dpbox/patches/patch-ag +++ b/ham/dpbox/patches/patch-ag @@ -1,8 +1,8 @@ -$NetBSD: patch-ag,v 1.1 2006/01/24 22:27:07 joerg Exp $ +$NetBSD: patch-ag,v 1.2 2006/04/21 02:07:54 wulf Exp $ ---- tools.c.orig 2000-04-27 12:48:55.000000000 +0000 -+++ tools.c -@@ -72,12 +72,14 @@ char conv_umlaut_to_local(char code) +--- tools.c.orig 2000-04-27 22:18:55.000000000 +0930 ++++ tools.c 2006-04-14 11:57:42.000000000 +0930 +@@ -72,12 +72,14 @@ void conv_string_from_local(char *s) { @@ -19,7 +19,7 @@ $NetBSD: patch-ag,v 1.1 2006/01/24 22:27:07 joerg Exp $ } boolean conv_file_umlaut(boolean to_local, char *fname) -@@ -168,7 +170,7 @@ short call_prg(char *prog, char *par, ch +@@ -168,7 +170,7 @@ #ifdef __macos__ return (status); #endif @@ -28,3 +28,50 @@ $NetBSD: patch-ag,v 1.1 2006/01/24 22:27:07 joerg Exp $ return (statusconvert(status)); #endif } +@@ -1221,11 +1223,11 @@ + + static short iscalpha(char c) + { +- if (isupper(c)) ++ if (isupper((u_char) c)) + return 1; +- else if (isdigit(c)) ++ else if (isdigit((u_char) c)) + return 0; +- else if (islower(c)) ++ else if (islower((u_char) c)) + return 1; + else + return -1; +@@ -2202,11 +2204,11 @@ + if (only_numbers) { + do { + c = dp_randomize(48, 57); +- } while (!isdigit(c)); ++ } while (!isdigit((u_char) c)); + } else { + do { + c = dp_randomize(48, 122); +- } while (!isalnum(c)); ++ } while (!isalnum((u_char) c)); + } + sprintf(MDprompt + strlen(MDprompt), "%c", c); + } +@@ -2349,7 +2351,7 @@ + upper(hs); + p = hs; + while (*p) { +- if (!isupper(*p) && !isdigit(*p)) *p = '\0'; ++ if (!isupper((u_char) *p) && !isdigit((u_char) *p)) *p = '\0'; + p++; + } + s = hs; +@@ -2840,7 +2842,7 @@ + + for (TmpPtr = ConvStr; *OriginStr; TmpPtr++, OriginStr++) + { +- *TmpPtr = tolower(*OriginStr); ++ *TmpPtr = tolower((u_char) *OriginStr); + if (*OriginStr < '0') /* Satzzeichen neutralisieren */ + *TmpPtr = ' '; + else |