1 --- asterisk-1.6.1.12/main/asterisk.c~ 2009-12-30 23:34:17.000000000 +0200
2 +++ asterisk-1.6.1.12/main/asterisk.c 2009-12-30 23:34:19.095481746 +0200
4 #include "asterisk/utils.h"
5 #include "asterisk/file.h"
6 #include "asterisk/io.h"
7 -#include "editline/histedit.h"
9 #include "asterisk/config.h"
10 #include "asterisk/ast_version.h"
11 #include "asterisk/linkedlists.h"
13 int mlen = 0, maxmbuf = 2048;
14 /* Start with a 2048 byte buffer */
15 if (!(mbuf = ast_malloc(maxmbuf))) {
16 - lf->cursor[0] = savechr;
17 +// lf->cursor[0] = savechr; // this is readonly variable
18 return (char *)(CC_ERROR);
20 snprintf(buf, sizeof(buf), "_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr);
22 /* Every step increment buffer 1024 bytes */
24 if (!(mbuf = ast_realloc(mbuf, maxmbuf))) {
25 - lf->cursor[0] = savechr;
26 +// lf->cursor[0] = savechr; // this is readonly variable
27 return (char *)(CC_ERROR);
34 - lf->cursor[0] = savechr;
35 +// lf->cursor[0] = savechr; // this is readonly variable
37 return (char *)(long)retval;