summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-11-17 12:00:08 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-11-17 12:00:08 +0000
commitc0c0855f73fca4d5207b6700231b77c4674911f1 (patch)
tree18370c02e764e46b9856f56fd645493edc791188 /file_io
parent0c70d0aaccb03772aeb483df374cffe1c7f05b6a (diff)
downloadlibapr-c0c0855f73fca4d5207b6700231b77c4674911f1.tar.gz
* file_io/unix/readwrite.c (apr_file_puts): Use apr_file_write_full.
* test/testfile.c (test_puts, file_contents_equal): Test apr_file_puts. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76115 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/unix/readwrite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/file_io/unix/readwrite.c b/file_io/unix/readwrite.c
index 98a11421d..2334ea1a6 100644
--- a/file_io/unix/readwrite.c
+++ b/file_io/unix/readwrite.c
@@ -268,9 +268,7 @@ APR_DECLARE(apr_status_t) apr_file_getc(char *ch, apr_file_t *thefile)
APR_DECLARE(apr_status_t) apr_file_puts(const char *str, apr_file_t *thefile)
{
- apr_size_t nbytes = strlen(str);
-
- return apr_file_write(thefile, str, &nbytes);
+ return apr_file_write_full(thefile, str, strlen(str), NULL);
}
APR_DECLARE(apr_status_t) apr_file_flush(apr_file_t *thefile)