1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/korean/han/files/patch-be
CHOI Junho f38f930b0b - Update han to work in 4.x. Use patches from kon2-16dot.
(it still has a bug: cursor doesn't displayed)
- distfile location moved.
2000-07-16 09:01:54 +00:00

13 lines
366 B
Plaintext

--- src/mouse.c.orig Mon Jan 27 20:40:27 1997
+++ src/mouse.c Tue May 9 18:08:44 2000
@@ -176,7 +176,8 @@
mouseType = MOUSE_NONE;
mInfo.has_mouse = FALSE;
- sscanf(config, "%s", name);
+ strncpy(name, config, MAX_COLS - 1);
+ name[MAX_COLS - 1] = '\0';
for (p = mice; p->name != NULL; p++) {
if (strcasecmp(name, p->name) == 0) {
mouseType = p->type;