diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2000-05-11 09:01:17 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2000-05-11 09:01:17 +0800 |
commit | 3f5576b9f878853b26142aecf6891a2801ab5cfc (patch) | |
tree | baa78a149d6f82133a7f43615faec53f1adf231d /japanese | |
parent | 1e3ccd261060a300abe9bd45f0efc06dcd4fe120 (diff) | |
download | freebsd-ports-gnome-3f5576b9f878853b26142aecf6891a2801ab5cfc.tar.gz freebsd-ports-gnome-3f5576b9f878853b26142aecf6891a2801ab5cfc.tar.zst freebsd-ports-gnome-3f5576b9f878853b26142aecf6891a2801ab5cfc.zip |
More better fix.
Suggested by: Takahiro Kambe <taca@SKY.YAMASHINA.KYOTO.JP>
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/kon2-16dot/files/patch-be | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/japanese/kon2-16dot/files/patch-be b/japanese/kon2-16dot/files/patch-be index 08419f20177f..e85ef0e9a9a0 100644 --- a/japanese/kon2-16dot/files/patch-be +++ b/japanese/kon2-16dot/files/patch-be @@ -1,11 +1,12 @@ ---- src/mouse.c~ Mon Jan 27 20:40:27 1997 -+++ src/mouse.c Mon May 8 15:39:35 2000 -@@ -176,7 +176,7 @@ - +--- 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); ++ 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; |