Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 50560 invoked by uid 500); 18 Mar 2000 20:10:42 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 50549 invoked from network); 18 Mar 2000 20:10:41 -0000 Date: Sat, 18 Mar 2000 15:11:51 -0500 Message-Id: <200003182011.PAA07939@k5.localdomain> X-Authentication-Warning: k5.localdomain: trawick set sender to trawickj@bellsouth.net using -f From: Jeff Trawick To: new-httpd@apache.org Subject: [PATCH] win32 ap_puts() shouldn't add '\n' Reply-to: trawickj@bellsouth.net X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N (not wishing to rekindle any old debates here; just want apache -h to look nice on win32) RCS file: /cvs/apache/apache-2.0/src/lib/apr/file_io/win32/readwrite.c,v retrieving revision 1.14 diff -u -r1.14 readwrite.c --- readwrite.c 2000/03/10 00:06:06 1.14 +++ readwrite.c 2000/03/18 20:10:24 @@ -199,12 +199,9 @@ int len; len = strlen(str); - str[len] = '\n'; - if (!WriteFile(thefile->filehand, str, len+1, &bwrote, NULL)) { - str[len] = '\0'; + if (!WriteFile(thefile->filehand, str, len, &bwrote, NULL)) { return GetLastError(); } - str[len] = '\0'; return APR_SUCCESS; } -- Jeff Trawick | trawick@ibm.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...