aboutsummaryrefslogtreecommitdiff
path: root/file_io/os2/readwrite.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2003-03-04 22:19:38 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2003-03-04 22:19:38 +0000
commit1f3331ec7ac24dc7dbefd1ffcd179c7a5f1fbfc0 (patch)
tree27beb95ea71139b444fe2f1367c8fbd9f2e977c4 /file_io/os2/readwrite.c
parent04977c5c0ec8499c8a7ea1b2c6a1a995a2a3cfec (diff)
downloadapr-1f3331ec7ac24dc7dbefd1ffcd179c7a5f1fbfc0.tar.gz
apr-1f3331ec7ac24dc7dbefd1ffcd179c7a5f1fbfc0.zip
Correct apr_file_gets() on OS2 and Win32 so that '\r's are no longer
eaten, and apr_file_gets() -> apr_file_puts() moves the contents uncorrupted. Reviewed by bicholes and brane git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64396 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/readwrite.c')
-rw-r--r--file_io/os2/readwrite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/file_io/os2/readwrite.c b/file_io/os2/readwrite.c
index c3f2caf8a..20c298742 100644
--- a/file_io/os2/readwrite.c
+++ b/file_io/os2/readwrite.c
@@ -343,9 +343,7 @@ APR_DECLARE(apr_status_t) apr_file_gets(char *str, int len, apr_file_t *thefile)
break;
}
- if (str[i] == '\r' || str[i] == '\x1A')
- i--;
- else if (str[i] == '\n') {
+ if (str[i] == '\n') {
i++;
break;
}