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")))
{
pid_t editor;
rcfile = fopen (rcfilename, "r");
- printf (" read");
if (!rcfile) /* should not really happen except for old users */
write_canned_rcfile (rcfilename);