dom mar 2 20:52:10 CET 2003

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matteo Brancaleoni
2003-03-02 19:52:23 +00:00
parent 708c892f57
commit b9ae36c893
9 changed files with 5488 additions and 7 deletions

View File

@@ -819,7 +819,7 @@ static int console_sendtext(int fd, int argc, char *argv[])
if (strlen(text2send))
ast_cli(fd, "Warning: message already waiting to be sent, overwriting\n");
strcpy(text2send, "");
while(tmparg <= argc) {
while(tmparg < argc) {
strncat(text2send, argv[tmparg++], sizeof(text2send) - strlen(text2send));
strncat(text2send, " ", sizeof(text2send) - strlen(text2send));
}