cmd_edit. fixes wrong variable in second strlen() call feature/dav-edit

Sun, 05 Apr 2020 10:11:46 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 05 Apr 2020 10:11:46 +0200
branch
feature/dav-edit
changeset 718
e71ffa69d3fe
parent 717
764e9fac530d
child 719
be012dd45b4b

cmd_edit. fixes wrong variable in second strlen() call

dav/main.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Sun Apr 05 10:06:38 2020 +0200
+++ b/dav/main.c	Sun Apr 05 10:11:46 2020 +0200
@@ -1245,7 +1245,7 @@
     if(access(outfile, W_OK)) {
         char* home = getenv("HOME");
         if(home) {
-            size_t len = strlen(envtmp);
+            size_t len = strlen(home);
             outfile = malloc(len+24);
             memcpy(outfile, home, len+1);
             if(outfile[len-1] != '/') {

mercurial