aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 25ffce1..f3c197b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -217,7 +217,7 @@ int main(int argc, char** argv)
/* if the user asked us to load paths from stdin, now is the time */
if(g_options.sin) {
- char buf[512];
+ char buf[PATH_MAX];
while(fgets(buf, sizeof(buf), stdin)) {
size_t len = strlen(buf);
if(buf[len-1] == '\n') {