openbsd-ports/japanese/kinput2/patches/patch-lib_imlib_imxport_c
espie 9675fc3c39 X input method for japanese.
Port by Hitoshi Suzuki <sigh@kuzirabekon.econ.nagasaki-u.ac.jp>, 
with a few flavor tricks by me.

Domo arigato, Suzuki san !
2000-04-26 00:43:12 +00:00

13 lines
448 B
Plaintext

$OpenBSD: patch-lib_imlib_imxport_c,v 1.1.1.1 2000/04/26 00:43:12 espie Exp $
--- lib/imlib/imxport.c.orig Thu May 27 01:55:30 1999
+++ lib/imlib/imxport.c Wed Apr 26 02:18:48 2000
@@ -504,7 +504,7 @@ char *path;
bzero((char *)&addr, sizeof(addr));
addr.sun_family = AF_UNIX;
- (void)strcpy(addr.sun_path, path);
+ (void)strlcpy(addr.sun_path, path, 104);
/*
* Remove socket which is created by the previous process.