--- cli.c 2003-12-08 10:20:25.000000000 -0700 +++ cli.c-good 2003-12-08 10:20:05.000000000 -0700 @@ -994,6 +994,7 @@ struct ast_cli_entry *e; int x; char *dup; + char mark[2]; x = AST_MAX_ARGS; if ((dup = parse_args(s, &x, argv))) { /* We need at least one entry, or ignore */ @@ -1012,7 +1013,8 @@ } else ast_cli(fd, "No such command '%s' (type 'help' for help)\n", find_best(argv)); /* Hack to mark the end of results */ - char mark[2] = {'\b', '\0'}; + mark[0] = '\b'; + mark[1] = '\0'; write(fd, mark, 1); if (e) { ast_mutex_lock(&clilock);