diff options
Diffstat (limited to 'cli.c')
-rwxr-xr-x | cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,10 +36,10 @@ void ast_cli(int fd, char *fmt, ...) { - char stuff[4096]; + char *stuff; va_list ap; va_start(ap, fmt); - vsnprintf(stuff, sizeof(stuff), fmt, ap); + vasprintf(&stuff, fmt, ap); va_end(ap); write(fd, stuff, strlen(stuff)); } |