Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107456 Details for
Bug 162815
games-emulation/psemu-padxwin-1.6 saves cfg in wrong directory
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.6-config-cfgpath.patch
1.6-config-cfgpath.patch (text/plain), 802 bytes, created by
Roberto Castagnola
on 2007-01-19 15:36:24 UTC
(
hide
)
Description:
1.6-config-cfgpath.patch
Filename:
MIME Type:
Creator:
Roberto Castagnola
Created:
2007-01-19 15:36:24 UTC
Size:
802 bytes
patch
obsolete
>--- src/conf.c.orig 2002-09-22 18:45:00.000000000 +0200 >+++ src/conf.c 2006-05-22 13:49:57.000000000 +0200 >@@ -183,7 +183,6 @@ > > void LoadConf() { > FILE *f; >- char cfg[255]; > char header[32]; > > memset(&conf, 0, sizeof(conf)); >@@ -202,8 +201,7 @@ > conf.keys[0][14] = XK_x; // Cross > conf.keys[0][15] = XK_a; // Square > >- sprintf(cfg, "%s/padXwin.cfg", getenv("HOME")); >- f = fopen(cfg, "r"); >+ f = fopen("cfg/padXwin.cfg", "r"); > if (f == NULL) return; > fread(header, 1, 32, f); > if (strcmp(header, CfgHeader)) { >@@ -218,10 +216,8 @@ > > void SaveConf() { > FILE *f; >- char cfg[255]; > >- sprintf(cfg, "%s/padXwin.cfg", getenv("HOME")); >- f = fopen(cfg, "w"); >+ f = fopen("cfg/padXwin.cfg", "w"); > if (f == NULL) return; > fwrite(CfgHeader, 1, 32, f); > fwrite(&conf, 1, sizeof(conf), f);
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 162815
: 107456