summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eio.c b/eio.c
index 509c1a2..76acde5 100644
--- a/eio.c
+++ b/eio.c
@@ -1490,7 +1490,7 @@ eio__realpath (struct tmpbuf *tmpbuf, eio_wd wd, const char *path)
errno = ENAMETOOLONG;
if (res + 1 + len + 1 >= tmp1)
- return;
+ return -1;
/* copy one component */
*res = '/';