home *** CD-ROM | disk | FTP | other *** search
- *** pgp.c.orig Sat Jul 3 01:22:36 1993
- --- pgp.c Sat Aug 28 17:08:46 1993
- ***************
- *** 858,862 ****
- fprintf(pgpout, PSTR("\nA user ID is required to select the recipient's public key. "));
- ! fprintf(pgpout, PSTR("\nEnter the recipient's user ID: "));
- getstring( mcguffin, 255, TRUE ); /* echo keyboard */
- ! if ((mcguffins = (char **) malloc (2 * sizeof(char *))) == NULL) {
- fprintf(stderr, PSTR("\n\007Out of memory.\n"));
- --- 858,862 ----
- fprintf(pgpout, PSTR("\nA user ID is required to select the recipient's public key. "));
- ! fprintf(pgpout, PSTR("\nEnter the recipient's user ID(s): "));
- getstring( mcguffin, 255, TRUE ); /* echo keyboard */
- ! if ((mcguffins = (char **) malloc (100 * sizeof(char *))) == NULL) {
- fprintf(stderr, PSTR("\n\007Out of memory.\n"));
- ***************
- *** 864,867 ****
- }
- ! mcguffins[0] = mcguffin;
- ! mcguffins[1] = "";
- }
- --- 864,879 ----
- }
- ! { int i; char *index = mcguffin;
- ! for ( i = 0; *index!='\0'; i++) {
- ! while ( *index==' ' || *index=='\t') index++;
- ! if (*index == '\"') {
- ! mcguffins[i] = ++index;
- ! while (*index!='\"' && *index!='\0') index++;
- ! } else {
- ! mcguffins[i] = index;
- ! while ( *index!=' ' && *index!='\t' && *index!='\0') index++;
- ! }
- ! if (*index=='\0') break;
- ! *index++ = '\0';
- ! }
- ! }
- }
-