summaryrefslogtreecommitdiff
path: root/comms/asterisk18/patches/patch-apps_app__adsiprog.c
diff options
context:
space:
mode:
Diffstat (limited to 'comms/asterisk18/patches/patch-apps_app__adsiprog.c')
-rw-r--r--comms/asterisk18/patches/patch-apps_app__adsiprog.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/comms/asterisk18/patches/patch-apps_app__adsiprog.c b/comms/asterisk18/patches/patch-apps_app__adsiprog.c
new file mode 100644
index 00000000000..ba970a34682
--- /dev/null
+++ b/comms/asterisk18/patches/patch-apps_app__adsiprog.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-apps_app__adsiprog.c,v 1.1.1.1 2021/06/13 07:47:18 jnemeth Exp $
+
+--- apps/app_adsiprog.c.orig 2018-05-07 17:17:45.731153122 +0000
++++ apps/app_adsiprog.c
+@@ -215,7 +215,7 @@ static int process_token(void *out, char
+ /* Convert */
+ *((unsigned int *)out) = htonl(*((unsigned int *)out));
+ }
+- } else if ((strlen(src) > 2) && (src[0] == '0') && (tolower(src[1]) == 'x')) {
++ } else if ((strlen(src) > 2) && (src[0] == '0') && (tolower((unsigned char)src[1]) == 'x')) {
+ if (!(argtype & ARG_NUMBER))
+ return -1;
+ /* Hex value */
+@@ -225,7 +225,7 @@ static int process_token(void *out, char
+ /* Convert */
+ *((unsigned int *)out) = htonl(*((unsigned int *)out));
+ }
+- } else if ((!ast_strlen_zero(src) && isdigit(src[0]))) {
++ } else if ((!ast_strlen_zero(src) && isdigit((unsigned char)src[0]))) {
+ if (!(argtype & ARG_NUMBER))
+ return -1;
+ /* Hex value */