Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 79615 Details for
Bug 116629
games-arcade/tomatoes-1.55 is unable to open config file on amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix c_str use
tomatoes-1.55-c_str.patch (text/plain), 524 bytes, created by
Bernard Cafarelli
on 2006-02-12 15:15:53 UTC
(
hide
)
Description:
Patch to fix c_str use
Filename:
MIME Type:
Creator:
Bernard Cafarelli
Created:
2006-02-12 15:15:53 UTC
Size:
524 bytes
patch
obsolete
>--- src/config.cpp.orig 2004-09-27 11:35:48.000000000 +0200 >+++ src/config.cpp 2006-02-13 00:00:01.000000000 +0100 >@@ -78,6 +78,7 @@ > // makefile. > char *get_config_location(bool write) { > #ifdef LINUX >+ char *config_path; > // Get the path to the config file > string tmp = get_tomatoes_dir() + "config.cfg"; > >@@ -90,8 +91,9 @@ > } > fclose(ftest); > } >- >- return (char*)tmp.c_str(); >+ config_path = new char[tmp.length()+1]; >+ strcpy(config_path,tmp.c_str()); >+ return config_path; > #endif > > // Return the CONFIG_DIR
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116629
: 79615