Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add calloc back

  • Loading branch information...
commit 77a8238d67c0c7900ba75d3baef229271357f584 1 parent 441f39b
TJ Holowaychuk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/watch.c
2  src/watch.c
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.