summaryrefslogtreecommitdiffstats
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 4df81dd..7717ef4 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -145,8 +145,10 @@ bool CanonicalizePath(char* path, size_t* len, unsigned int* slash_bits,
bits_offset++;
}
}
- if (bits_offset > 32)
+ if (bits_offset > 32) {
+ *err = "too many path components";
return false;
+ }
bits_offset = 0;
#endif