Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107452 Details for
Bug 162812
games-emulation/psemu-cdr-1.8 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.8-config-cfgpath.patch
1.8-config-cfgpath.patch (text/plain), 694 bytes, created by
Roberto Castagnola
on 2007-01-19 15:22:27 UTC
(
hide
)
Description:
1.8-config-cfgpath.patch
Filename:
MIME Type:
Creator:
Roberto Castagnola
Created:
2007-01-19 15:22:27 UTC
Size:
694 bytes
patch
obsolete
>--- src/cfg.c.orig 2002-12-27 02:28:20.000000000 +0100 >+++ src/cfg.c 2006-05-22 13:57:00.000000000 +0200 >@@ -17,7 +17,6 @@ > > void LoadConf() { > FILE *f; >- char cfg[255]; > > strcpy(CdromDev, DEV_DEF); > ReadMode = THREADED; >@@ -25,8 +24,7 @@ > CacheSize = 64; > CdrSpeed = 0; > >- sprintf(cfg, "%s/cdr.cfg", getenv("HOME")); >- f = fopen(cfg, "r"); >+ f = fopen("cfg/cdr.cfg", "r"); > if (f == NULL) return; > > fscanf(f, "CdromDev = %s\n", CdromDev); >@@ -43,10 +41,8 @@ > > void SaveConf() { > FILE *f; >- char cfg[255]; > >- sprintf(cfg, "%s/cdr.cfg", getenv("HOME")); >- f = fopen(cfg, "w"); >+ f = fopen("cfg/cdr.cfg", "w"); > if (f == NULL) > return; > fprintf(f, "CdromDev = %s\n", CdromDev);
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 162812
: 107452