You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2001/08/23 18:20:41 UTC
cvs commit: apr/threadproc/os2 proc.c
bjh 01/08/23 09:20:41
Modified: threadproc/os2 proc.c
Log:
\n removal, needed now OS/2 apr_file_gets() leaves them on.
Revision Changes Path
1.43 +5 -0 apr/threadproc/os2/proc.c
Index: proc.c
===================================================================
RCS file: /home/cvs/apr/threadproc/os2/proc.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- proc.c 2001/08/10 21:04:48 1.42
+++ proc.c 2001/08/23 16:20:41 1.43
@@ -360,6 +360,11 @@
if (status == APR_SUCCESS) {
if (interpreter[0] == '#' && interpreter[1] == '!') {
+ /* delete newline */
+ if (interpreter[0]) {
+ interpreter[strlen(interpreter) - 1] = '\0';
+ }
+
if (interpreter[2] != '/' && interpreter[2] != '\\' && interpreter[3] != ':') {
char buffer[300];