From e218bf1055fb3dddddfa238bbebff4d8f6270c30 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Fri, 23 Jan 2004 18:33:35 +0000 Subject: [PATCH] fix canned rcfile path git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@157 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- dgamelaunch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dgamelaunch.c b/dgamelaunch.c index ac71e50..2e808ed 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -1131,9 +1131,9 @@ write_canned_rcfile (char *target) char buf[1024], *rfn; size_t bytes, len; - len = strlen(myconfig->dglroot) + strlen(myconfig->rcfile) + 1; + len = strlen(myconfig->rcfile) + 2; rfn = malloc(len); - snprintf (rfn, len, "%s%s", myconfig->dglroot, myconfig->rcfile); + snprintf (rfn, len, "/%s", myconfig->rcfile); if (!(newfile = fopen (target, "w"))) { @@ -1179,7 +1179,6 @@ editoptions () pid_t editor; rcfile = fopen (rcfilename, "r"); - printf (" read"); if (!rcfile) /* should not really happen except for old users */ write_canned_rcfile (rcfilename);