summaryrefslogtreecommitdiff
path: root/main/php_realpath.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-08-01 00:41:35 +0000
committerZeev Suraski <zeev@php.net>2000-08-01 00:41:35 +0000
commitc5c973d16fb53813595b767a80462f4a34d0a2bd (patch)
tree6bcf8d2f0309a7d08514eebfa4d8fb5363bf8780 /main/php_realpath.c
parent89107a221b0ef65ea2947ee5e235ca363dc8e9f0 (diff)
downloadphp-git-c5c973d16fb53813595b767a80462f4a34d0a2bd.tar.gz
- Get rid of whitespace.
Diffstat (limited to 'main/php_realpath.c')
-rw-r--r--main/php_realpath.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/php_realpath.c b/main/php_realpath.c
index 339eb2eb8f..2c27199dd8 100644
--- a/main/php_realpath.c
+++ b/main/php_realpath.c
@@ -257,9 +257,10 @@ char *php_realpath(char *path, char resolved_path []) {
if (S_ISDIR(filestat.st_mode)) {
/* It's a directory, append a / if needed */
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 = 0;
}