Sun, 05 Apr 2020 10:11:46 +0200
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] != '/') {