Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add calloc back

  • Loading branch information...
commit 77a8238d67c0c7900ba75d3baef229271357f584 1 parent 441f39b
@tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/watch.c
View
2  src/watch.c
@@ -131,7 +131,7 @@ length(char **strs) {
char *
join(char **strs, int len, char *val) {
--len;
- char *buf = malloc(length(strs) + len * strlen(val) + 1);
+ char *buf = calloc(1, length(strs) + len * strlen(val) + 1);
char *str;
while ((str = *strs++)) {
strcat(buf, str);

0 comments on commit 77a8238

Please sign in to comment.
Something went wrong with that request. Please try again.