At 07:47 PM 12/1/2003 +0000, Sara Golemon wrote:
+       if (strncmp(url, "file://", 7) == 0) {
+               url += 7;
+       }

Hi Sara,


Please when you write such code don't use constant numbers but sizeof.
It should look something like:
+       if (strncmp(url, "file://", sizeof("file://")-1) == 0) {
+               url += sizeof("file://")-1);
+       }

Not sure if the strncmp() should be with the -1 or not.

Andi

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to