Permalink
Browse files

trailing NUL

  • Loading branch information...
1 parent 1bf0fb9 commit 6de43654ef73c8741a151fc688558b01a63796df @kr committed Mar 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ct/ct.c
View
@@ -194,7 +194,7 @@ rmtree(char *path)
continue;
}
int n = strlen(path) + 1 + strlen(ent->d_name);
- char s[n];
+ char s[n+1];
sprintf(s, "%s/%s", path, ent->d_name);
rmtree(s);
}

0 comments on commit 6de4365

Please sign in to comment.