freebsd-ports/games/xshisen/files/patch-main.c
Michael Scheidell 2ef322cb96 - Fixes buffer overflow about GECOS field [1]
- also fix a bug arround high-score [1]
- create files/patches-* for submission [2]
- portsrevision bump [2]
- entry into vulnxml for < 1.51_3 460118c0-2bde-11e1-bd69-001143cd36d8 [2]

PR:		ports/163274 [1]
Submitted by:	Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> (maintainer) [1]
Reviewed by:	scheidell [2]
Approved by:	gabor (mentor)
2011-12-21 14:16:47 +00:00

12 lines
342 B
C

--- main.C.orig 2002-07-07 16:33:55.000000000 +0900
+++ main.C 2011-12-07 11:56:13.000000000 +0900
@@ -210,7 +210,7 @@
char buffer[100], *p;
char *(*codeconv)(const char*);
- strcpy(buffer, operation);
+ strncpy(buffer, operation, 99);
if (strchr(buffer, '-') == NULL) {
strcat(buffer, "-" KANJICODE);
}