freebsd-ports/games/xshisen/files/patch-components.h
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
470 B
C++

--- components.h.orig 2002-07-07 16:34:23.000000000 +0900
+++ components.h 2011-12-07 11:31:45.000000000 +0900
@@ -61,6 +61,8 @@
#define HNUM (PKIND*2) // Number of pairs to pick up
#define SCORENUM 10 // Number of people to register in high-score
#define NAMELEN 28 // Length of name in high-score
+#define NBUFLEN 127 // Length of namebuf-1
+#define GECOSLEN (NBUFLEN-12) // Length for GECOS field-1
class Timer {
private: