aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-git-receiver/pre-receive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-git-receiver/pre-receive.c')
-rw-r--r--src/blogc-git-receiver/pre-receive.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/blogc-git-receiver/pre-receive.c b/src/blogc-git-receiver/pre-receive.c
index 76cf1bf..71e84e8 100644
--- a/src/blogc-git-receiver/pre-receive.c
+++ b/src/blogc-git-receiver/pre-receive.c
@@ -170,8 +170,9 @@ default_sym:
bc_strv_free(pieces);
}
else {
- char *input = bc_stdin_read();
- master = bgr_pre_receive_parse(input, strlen(input));
+ size_t input_len;
+ char *input = bc_stdin_read(&input_len);
+ master = bgr_pre_receive_parse(input, input_len);
free(input);
}