1 diff -ru libgpg-error.orig/src/gpg-error.c libgpg-error/src/gpg-error.c
2 --- libgpg-error.orig/src/gpg-error.c 2016-12-02 22:55:32.000000000 +0100
3 +++ libgpg-error/src/gpg-error.c 2017-09-13 22:25:10.040113800 +0200
5 static const char src_prefix[] = "GPG_ERR_SOURCE_";
6 static const char code_prefix[] = "GPG_ERR_";
8 - if (!strncasecmp (src_prefix, str, sizeof (src_prefix) - 1))
9 + if (!_strnicmp (src_prefix, str, sizeof (src_prefix) - 1))
16 src_sym = gpg_strsource_sym (src << GPG_ERR_SOURCE_SHIFT);
17 - if (src_sym && !strcasecmp (str, src_sym + sizeof (src_prefix) - 1))
18 + if (src_sym && !_stricmp (str, src_sym + sizeof (src_prefix) - 1))
20 *err |= src << GPG_ERR_SOURCE_SHIFT;
25 - else if (!strncasecmp (code_prefix, str, sizeof (code_prefix) - 1))
26 + else if (!_strnicmp (code_prefix, str, sizeof (code_prefix) - 1))
32 const char *code_sym = gpg_strerror_sym (code);
34 - && !strcasecmp (str, code_sym + sizeof (code_prefix) - 1))
35 + && !_stricmp (str, code_sym + sizeof (code_prefix) - 1))
40 for (src = 0; src < GPG_ERR_SOURCE_DIM; src++)
42 const char *src_str = gpg_strsource (src << GPG_ERR_SOURCE_SHIFT);
43 - if (src_str && !strcasecmp (str, src_str))
44 + if (src_str && !_stricmp (str, src_str))
49 for (code = 0; code < GPG_ERR_CODE_DIM; code++)
51 const char *code_str = gpg_strerror (code);
52 - if (code_str && !strcasecmp (str, code_str))
53 + if (code_str && !_stricmp (str, code_str))
57 Nur in libgpg-error/src: gpg-error.c~.