pkgsrc/comms/asterisk15/patches/patch-apps_app__adsiprog.c

23 lines
894 B
C
Raw Normal View History

$NetBSD: patch-apps_app__adsiprog.c,v 1.1 2018/07/16 21:53:05 joerg 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 */