mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5372,9 +5372,9 @@ ast_group_t ast_get_group(const char *s)
|
||||
c = ast_strdupa(s);
|
||||
|
||||
while ((piece = strsep(&c, ","))) {
|
||||
if (sscanf(piece, "%d-%d", &start, &finish) == 2) {
|
||||
if (sscanf(piece, "%30d-%30d", &start, &finish) == 2) {
|
||||
/* Range */
|
||||
} else if (sscanf(piece, "%d", &start)) {
|
||||
} else if (sscanf(piece, "%30d", &start)) {
|
||||
/* Just one */
|
||||
finish = start;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user