aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-08 19:41:34 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-08 19:41:34 +0000
commit66cd2fcb8f66bccc8ed7dc3202fe8eaa589da18f (patch)
tree6c6f155c321ad41c19f43cb2c055d51506e647a2 /cli.c
parenta5dfdb3d130dcdaa2a2e43ddaa2b65155b57fdbb (diff)
Bug # 1973: Change write to ast_carefulwrite
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3403 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 1376ed257..6c03fbda8 100755
--- a/cli.c
+++ b/cli.c
@@ -19,6 +19,7 @@
#include <asterisk/module.h>
#include <asterisk/channel.h>
#include <asterisk/channel_pvt.h>
+#include <asterisk/manager.h>
#include <asterisk/utils.h>
#include <asterisk/lock.h>
#include <sys/signal.h>
@@ -42,7 +43,7 @@ void ast_cli(int fd, char *fmt, ...)
va_start(ap, fmt);
vasprintf(&stuff, fmt, ap);
va_end(ap);
- write(fd, stuff, strlen(stuff));
+ ast_carefulwrite(fd, stuff, strlen(stuff), 100);
free(stuff);
}