pkgsrc/comms/asterisk15/patches/patch-funcs_func__strings.c
joerg 73dae11255 Add Asterisk 15.4.1:
Asterisk is a complete PBX in software.  It provides all of the
features you would expect from a PBX and more. Asterisk does voice
over IP in three protocols, and can interoperate with almost all
standards-based telephony equipment using relatively inexpensive
hardware.

Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).

This is a standard version.  It is scheduled to go to security
fixes only on October 3th, 2018, and EOL on October 3th, 2019.
See here for more information about Asterisk versions:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
2018-07-16 21:53:04 +00:00

40 lines
1.6 KiB
C

$NetBSD: patch-funcs_func__strings.c,v 1.1 2018/07/16 21:53:05 joerg Exp $
--- funcs/func_strings.c.orig 2018-05-07 17:21:13.413282206 +0000
+++ funcs/func_strings.c
@@ -1483,7 +1483,7 @@ static int string_toupper(struct ast_cha
{
char *bufptr = buf, *dataptr = data;
- while ((bufptr < buf + buflen - 1) && (*bufptr++ = toupper(*dataptr++)));
+ while ((bufptr < buf + buflen - 1) && (*bufptr++ = toupper((unsigned char)*dataptr++)));
return 0;
}
@@ -1496,7 +1496,7 @@ static int string_toupper2(struct ast_ch
ast_str_make_space(buf, buflen > 0 ? buflen : strlen(data) + 1);
}
bufptr = ast_str_buffer(*buf);
- while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = toupper(*dataptr++)));
+ while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = toupper((unsigned char)*dataptr++)));
ast_str_update(*buf);
return 0;
@@ -1512,7 +1512,7 @@ static int string_tolower(struct ast_cha
{
char *bufptr = buf, *dataptr = data;
- while ((bufptr < buf + buflen - 1) && (*bufptr++ = tolower(*dataptr++)));
+ while ((bufptr < buf + buflen - 1) && (*bufptr++ = tolower((unsigned char)*dataptr++)));
return 0;
}
@@ -1525,7 +1525,7 @@ static int string_tolower2(struct ast_ch
ast_str_make_space(buf, buflen > 0 ? buflen : strlen(data) + 1);
}
bufptr = ast_str_buffer(*buf);
- while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = tolower(*dataptr++)));
+ while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = tolower((unsigned char)*dataptr++)));
ast_str_update(*buf);
return 0;