diff options
Diffstat (limited to '')
-rw-r--r-- | common/iobuf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/common/iobuf.c b/common/iobuf.c index e859a5c70..4674fdf15 100644 --- a/common/iobuf.c +++ b/common/iobuf.c @@ -2108,12 +2108,7 @@ iobuf_write (iobuf_t a, const void *buffer, unsigned int buflen) int iobuf_writestr (iobuf_t a, const char *buf) { - int rc; - - for (; *buf; buf++) - if ((rc=iobuf_writebyte (a, *buf))) - return rc; - return 0; + return iobuf_write (a, buf, strlen (buf)); } |