From 15a247741a63d78340d2296ca178715bda2dd21b Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sun, 31 May 2009 13:59:03 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23611 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfOpenGL/cfg.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'plugins/dfOpenGL') diff --git a/plugins/dfOpenGL/cfg.c b/plugins/dfOpenGL/cfg.c index c048da68..6270e54a 100644 --- a/plugins/dfOpenGL/cfg.c +++ b/plugins/dfOpenGL/cfg.c @@ -86,20 +86,26 @@ void ExecCfg(char *arg) { strcpy(cfg, "./cfgDFOpenGL"); if (stat(cfg, &buf) != -1) { - sprintf(cfg, "%s %s", cfg, arg); - system(cfg); return; + strcat(cfg, " "); + strcat(cfg, arg); + system(cfg); + return; } strcpy(cfg, "./cfg/cfgDFOpenGL"); if (stat(cfg, &buf) != -1) { - sprintf(cfg, "%s %s", cfg, arg); - system(cfg); return; + strcat(cfg, " "); + strcat(cfg, arg); + system(cfg); + return; } sprintf(cfg, "%s/.pcsx/plugins/cfg/cfgDFOpenGL", getenv("HOME")); if (stat(cfg, &buf) != -1) { - sprintf(cfg, "%s %s", cfg, arg); - system(cfg); return; + strcat(cfg, " "); + strcat(cfg, arg); + system(cfg); + return; } printf("ERROR: cfgDFOpenGL file not found!\n"); -- cgit v1.2.3