summaryrefslogtreecommitdiff
path: root/app-crypt/ckpass/files/ckpass-0.2-fix_c23_and_sentinel.patch
blob: 52027d3405411d91bf6c23a5afd4ad97b8a998d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
fix unprototyped function #880435 and missing sentinel
https://sourceforge.net/p/ckpass/bugs/2/
--- a/ckpass.h
+++ b/ckpass.h
@@ -56,7 +56,7 @@ void error_dialog(char *s);
 int open_db(kpass_db *db, const char *filename);
 int read_db(kpass_db *db, const char *filename);
 int decrypt_db(kpass_db *db, const char *password);
-void init_windows();
+void init_windows(const kpass_db *db);
 void draw_groups(const kpass_db *, int, int, bool);
 void draw_entries(const kpass_db *, int, int, int, bool, bool);
 void draw_top_bar(const char *);
--- a/ckpass.c
+++ b/ckpass.c
@@ -677,7 +677,7 @@ int pipeout(const char *command, const char *s)
 		close(pipefd[1]); /* Close write end. */
 		dup2(pipefd[0], 0); /* Dup read end to stdin. */
 
-		execl(command, command, 0);
+		execl(command, command, NULL);
 
 		/* I don't really think these are necessary, but just in case. */
 		close(pipefd[0]);