aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-git-receiver/pre-receive.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-30 21:32:05 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2020-05-30 21:37:00 +0200
commitc3b9af3831762d7548eb1e72cfb62ab95e0d8490 (patch)
tree9f63251e8e665ee798972832f26b1baf1c0a7ec3 /src/blogc-git-receiver/pre-receive.c
parent9a3629921b250e7079be9abb5252381025c33354 (diff)
downloadblogc-c3b9af3831762d7548eb1e72cfb62ab95e0d8490.tar.gz
blogc-c3b9af3831762d7548eb1e72cfb62ab95e0d8490.tar.bz2
blogc-c3b9af3831762d7548eb1e72cfb62ab95e0d8490.zip
common: bc_stdin_read() should set read length
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);
}