mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Fix "core show translation" output. Issue #8243, patch by Damin.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -523,7 +523,7 @@ static int show_translation_deprecated(int fd, int argc, char *argv[])
|
|||||||
longest = curlen;
|
longest = curlen;
|
||||||
}
|
}
|
||||||
for (x = -1; x < SHOW_TRANS; x++) {
|
for (x = -1; x < SHOW_TRANS; x++) {
|
||||||
char line[80];
|
char line[120];
|
||||||
char *buf = line;
|
char *buf = line;
|
||||||
size_t left = sizeof(line) - 1; /* one initial space */
|
size_t left = sizeof(line) - 1; /* one initial space */
|
||||||
/* next 2 lines run faster than using ast_build_string() */
|
/* next 2 lines run faster than using ast_build_string() */
|
||||||
@@ -591,7 +591,7 @@ static int show_translation(int fd, int argc, char *argv[])
|
|||||||
longest = curlen;
|
longest = curlen;
|
||||||
}
|
}
|
||||||
for (x = -1; x < SHOW_TRANS; x++) {
|
for (x = -1; x < SHOW_TRANS; x++) {
|
||||||
char line[80];
|
char line[120];
|
||||||
char *buf = line;
|
char *buf = line;
|
||||||
size_t left = sizeof(line) - 1; /* one initial space */
|
size_t left = sizeof(line) - 1; /* one initial space */
|
||||||
/* next 2 lines run faster than using ast_build_string() */
|
/* next 2 lines run faster than using ast_build_string() */
|
||||||
|
Reference in New Issue
Block a user