aboutsummaryrefslogtreecommitdiffstats
path: root/src/implementation.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-23 16:24:50 +0000
committerJoursoir <chat@joursoir.net>2021-03-23 16:24:50 +0000
commitf14b09b10db42962a4f7f0a4d7f9cf2ea8feef4f (patch)
tree09a71df8787e0716cd4e9b87d4bbb50a6310e2a9 /src/implementation.c
parent44f339a62ee7961758afb451a760f3b291f34c79 (diff)
downloadlock-password-f14b09b10db42962a4f7f0a4d7f9cf2ea8feef4f.tar.gz
lock-password-f14b09b10db42962a4f7f0a4d7f9cf2ea8feef4f.tar.bz2
lock-password-f14b09b10db42962a4f7f0a4d7f9cf2ea8feef4f.zip
move cmd to 'exec-cmd.c', fix some memory leak, macros changes
Diffstat (limited to 'src/implementation.c')
-rw-r--r--src/implementation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/implementation.c b/src/implementation.c
index 5fcd17e..af59b21 100644
--- a/src/implementation.c
+++ b/src/implementation.c
@@ -43,7 +43,7 @@ int copy_outside(char *password)
int pid;
pid = fork();
if(pid == -1)
- errprint(1, "X11 fork() failed\n");
+ errprint_r(1, "X11 fork() failed\n");
if(pid == 0) /* new process */
exit(run_clipboard(password));
return 0;
@@ -54,7 +54,7 @@ int copy_outside(char *password)
int pid;
pid = fork();
if(pid == -1)
- errprint(1, "Wayland fork() failed\n");
+ errprint_r(1, "Wayland fork() failed\n");
if(pid == 0) { /* new process */
execvp("wl-copy", wl_copy);
perror("wl-copy");
@@ -64,7 +64,7 @@ int copy_outside(char *password)
return 0;
}
- errprint(1, "You didn't have x11 or wayland when app builded\n");
+ errprint_r(1, "You didn't have x11 or wayland when app builded\n");
}
/* check two dot in path */
@@ -88,7 +88,7 @@ char *get_pubkey()
if(fileGPG == NULL) {
free(pubkey);
if(errno == ENOENT)
- errprint(NULL, "No GPG key exists. Use \"lpass init\".");
+ errprint_r(NULL, "No GPG key exists. Use \"lpass init\".");
perror(".gpg-key");
return NULL;
}