6a0cd47ccf
poor substitute for the rocking linux zaurus IM.
24 lines
700 B
Plaintext
24 lines
700 B
Plaintext
$OpenBSD: patch-kanjipad_c,v 1.1.1.1 2005/07/16 12:33:50 espie Exp $
|
|
--- kanjipad.c.orig Sat Jul 16 14:19:07 2005
|
|
+++ kanjipad.c Sat Jul 16 14:19:51 2005
|
|
@@ -21,6 +21,7 @@
|
|
#include <errno.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include "kanjipad.h"
|
|
@@ -393,9 +394,9 @@ init_engine()
|
|
dup2 (out_fd[1], STDOUT_FILENO);
|
|
|
|
if (data_file)
|
|
- execlp ("kpengine","kpengine","--data-file", data_file, NULL);
|
|
+ execlp ("kpengine","kpengine","--data-file", data_file, (char *)0);
|
|
else
|
|
- execlp ("kpengine","kpengine", NULL);
|
|
+ execlp ("kpengine","kpengine", (char *)0);
|
|
|
|
g_error ("Couldn't exec kpengine: %s", g_strerror(errno));
|
|
|