Browse Source

- Get rid of whitespace.

PHP-4.0.5
Zeev Suraski 26 years ago
parent
commit
c5c973d16f
  1. 7
      main/php_realpath.c

7
main/php_realpath.c

@ -257,9 +257,10 @@ char *php_realpath(char *path, char resolved_path []) {
if (S_ISDIR(filestat.st_mode)) { if (S_ISDIR(filestat.st_mode)) {
/* It's a directory, append a / if needed */ /* It's a directory, append a / if needed */
if (*(writepos-1) != '/') { if (*(writepos-1) != '/') {
/* C heck for overflow */
if ((strlen(workpos) + 2) >= MAXPATHLEN) return NULL;
/* Check for overflow */
if ((strlen(workpos) + 2) >= MAXPATHLEN) {
return NULL;
}
*writepos++ = '/'; *writepos++ = '/';
*writepos = 0; *writepos = 0;
} }

Loading…
Cancel
Save