Cosmetic bug-fix to fopen-wrappers.c

From: Date: Tue, 22 Jun 1999 09:03:53 +0000
Subject: Cosmetic bug-fix to fopen-wrappers.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-7391@lists.php.net to get a copy of this message
Hi, There is a small cosmetic (warning-generating) bug in the current version of fopen-wrappers.c. The patch below should fix it. - peter Index: fopen-wrappers.c =================================================================== RCS file: /repository/php3/fopen-wrappers.c,v retrieving revision 1.67 diff -u -r1.67 fopen-wrappers.c --- fopen-wrappers.c 1999/06/22 02:06:21 1.67 +++ fopen-wrappers.c 1999/06/22 10:06:30 @@ -590,7 +590,7 @@ if (!SOCK_FEOF(*socketd)) { /* get response header */ if (SOCK_FGETS(tmp_line, sizeof(tmp_line), *socketd) != NULL) { - if (strncmp(tmp_line + 8, " 200 ", 5) == NULL) { + if (strncmp(tmp_line + 8, " 200 ", 5) == 0) { reqok = 1; } }

« previous php.dev (#7391) next »