Skip to content
Snippets Groups Projects
Commit c5e44cc3 authored by Malcolm Davenport's avatar Malcolm Davenport
Browse files

Bug # 1973: Change write to ast_carefulwrite

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c793ab62
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment