summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.local/bin/autobuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/autobuild.c b/.local/bin/autobuild.c
index 3805e19..48ff48d 100644
--- a/.local/bin/autobuild.c
+++ b/.local/bin/autobuild.c
@@ -64,7 +64,7 @@ main(int argc, char **argv)
mysetenv("LC_TIME" , env_lc_time );
const char *script_suffix = "/.local/bin/autobuild.sh";
- char *script = alloca(strlen(user->pw_dir)+strlen(script_suffix));
+ char *script = alloca(strlen(user->pw_dir)+strlen(script_suffix)+1);
strcpy(script, user->pw_dir);
strcpy(&(script[strlen(user->pw_dir)]), script_suffix);