diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-07-03 02:54:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-07-03 02:54:50 +0000 |
commit | 9aafb07f141bbd1cae1395e34fe3d064918c6712 (patch) | |
tree | ab8d0347fc4486ad4d84cd48182f56f7ac3f7a08 /options.c | |
parent | 1a9213a862e2b7c2b3e918d7700a82f014004b08 (diff) | |
download | fetchmail-9aafb07f141bbd1cae1395e34fe3d064918c6712.tar.gz fetchmail-9aafb07f141bbd1cae1395e34fe3d064918c6712.tar.bz2 fetchmail-9aafb07f141bbd1cae1395e34fe3d064918c6712.zip |
poprcfile is now a single global.
svn path=/trunk/; revision=26
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -184,8 +184,8 @@ struct optrec *options; break; case 'f': case LA_POPRC: - options->poprcfile = (char *) xmalloc(strlen(optarg)+1); - strcpy(options->poprcfile,optarg); + poprcfile = (char *) xmalloc(strlen(optarg)+1); + strcpy(poprcfile,optarg); break; case 'u': case LA_USERNAME: @@ -309,12 +309,12 @@ struct optrec *options; (void) sprintf(options->mda, DEF_MDA, options->localname); - options->poprcfile = + poprcfile = (char *) xmalloc(strlen(pw->pw_dir)+strlen(POPRC_NAME)+2); - strcpy(options->poprcfile, pw->pw_dir); - strcat(options->poprcfile, "/"); - strcat(options->poprcfile, POPRC_NAME); + strcpy(poprcfile, pw->pw_dir); + strcat(poprcfile, "/"); + strcat(poprcfile, POPRC_NAME); outlevel = O_NORMAL; |