Bug 40832 - [patch] games/race doesn't work due to FreeBSD specific patch
Summary: [patch] games/race doesn't work due to FreeBSD specific patch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-21 12:40 UTC by edwin
Modified: 2002-07-21 17:50 UTC (History)
0 users

See Also:


Attachments
file.diff (699 bytes, patch)
2002-07-21 12:40 UTC, edwin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description edwin 2002-07-21 12:40:02 UTC
games/race crashes when it tries to load one of its datafiles.

Fix: games/race tries to be smart and allocates a string of 6+strlen()
of two variables. This goes fine it the fixed 6 is the length of
"/data/". But how about it if the patch changes /data/ into
%%DATADIR%%, which is later on expanded to /usr/local/share/race ?

This patch gives the allocated string a length of 60, which should
be (include famous last words here) long enough for the string.
How-To-Repeat: 
install games/race and try to run a game .
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-07-21 17:50:06 UTC
State Changed
From-To: open->closed

committed, thanks