summaryrefslogtreecommitdiffstats
path: root/src/csv.c
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-01 17:55:39 +0000
committerDavid Troy <dave@popvox.com>2006-04-01 17:55:39 +0000
commit003236f73567a285b35fc8d571ac94fb0bc51278 (patch)
tree205367ccb2b0efd7e22ae84895c493653c205e9a /src/csv.c
parent291633f8cb612e222fc6a8209ebbbd6904bcf3de (diff)
downloadastmanproxy-003236f73567a285b35fc8d571ac94fb0bc51278.tar.gz
astmanproxy-003236f73567a285b35fc8d571ac94fb0bc51278.tar.xz
astmanproxy-003236f73567a285b35fc8d571ac94fb0bc51278.zip
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@50 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'src/csv.c')
-rw-r--r--src/csv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csv.c b/src/csv.c
index bf8e800..fb26f3b 100644
--- a/src/csv.c
+++ b/src/csv.c
@@ -20,9 +20,9 @@ int _write(struct mansession *s, struct message *m) {
sprintf(outstring, "\"%s\"", m->headers[i]);
if (i<m->hdrcount-1)
strcat(outstring, ", ");
- write(s->fd, outstring, strlen(outstring));
+ ast_carefulwrite(s->fd, outstring, strlen(outstring), s->writetimeout);
}
- write(s->fd, "\r\n\r\n", 4);
+ ast_carefulwrite(s->fd, "\r\n\r\n", 4, s->writetimeout);
pthread_mutex_unlock(&s->lock);
return 0;