mirror of https://github.com/sipwise/asterisk.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
440 B
14 lines
440 B
--- channels/misdn_config.c (revisión: 193261)
|
|
+++ channels/misdn_config.c (revisión: 193262)
|
|
@@ -798,7 +798,9 @@
|
|
for (; iter; iter = iter->next) {
|
|
strncat(tempbuf, iter->msn, sizeof(tempbuf) - strlen(tempbuf) - 1);
|
|
}
|
|
- tempbuf[strlen(tempbuf)-2] = 0;
|
|
+ if (strlen(tempbuf) > 1) {
|
|
+ tempbuf[strlen(tempbuf)-2] = 0;
|
|
+ }
|
|
}
|
|
snprintf(buf, bufsize, " -> msns: %s", *tempbuf ? tempbuf : "none");
|
|
break;
|