home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / util / pgp / pgpamiga / source / pgp_todo.lha / diff.multi < prev    next >
Encoding:
Text File  |  1993-08-28  |  1.4 KB  |  39 lines

  1. *** pgp.c.orig    Sat Jul  3 01:22:36 1993
  2. --- pgp.c    Sat Aug 28 17:08:46 1993
  3. ***************
  4. *** 858,862 ****
  5.                   fprintf(pgpout, PSTR("\nA user ID is required to select the recipient's public key. "));
  6. !                 fprintf(pgpout, PSTR("\nEnter the recipient's user ID: "));
  7.                   getstring( mcguffin, 255, TRUE );    /* echo keyboard */
  8. !                 if ((mcguffins = (char **) malloc (2 * sizeof(char *))) == NULL) {
  9.                       fprintf(stderr, PSTR("\n\007Out of memory.\n"));
  10. --- 858,862 ----
  11.                   fprintf(pgpout, PSTR("\nA user ID is required to select the recipient's public key. "));
  12. !                 fprintf(pgpout, PSTR("\nEnter the recipient's user ID(s): "));
  13.                   getstring( mcguffin, 255, TRUE );    /* echo keyboard */
  14. !                 if ((mcguffins = (char **) malloc (100 * sizeof(char *))) == NULL) {
  15.                       fprintf(stderr, PSTR("\n\007Out of memory.\n"));
  16. ***************
  17. *** 864,867 ****
  18.                   }
  19. !                 mcguffins[0] = mcguffin;
  20. !                 mcguffins[1] = "";
  21.               }
  22. --- 864,879 ----
  23.                   }
  24. !                 {    int i;   char *index = mcguffin;
  25. !                     for ( i = 0; *index!='\0'; i++) {
  26. !                         while ( *index==' ' || *index=='\t') index++;
  27. !                         if (*index == '\"') {
  28. !                             mcguffins[i] = ++index;
  29. !                             while (*index!='\"' && *index!='\0') index++;
  30. !                         } else {
  31. !                             mcguffins[i] = index;
  32. !                             while ( *index!=' ' && *index!='\t' && *index!='\0') index++;
  33. !                         }
  34. !                         if (*index=='\0') break;
  35. !                         *index++ = '\0';
  36. !                     }
  37. !                 }
  38.               }
  39.