View | Details | Raw Unified
Collapse All | Expand All

(-) file_not_specified_in_diff (-7 / +16 lines)
 Lines 121-138    Link Here 
            sprintf(print_file, "%s.%s", get_docbname(), dev.fext);
            sprintf(print_file, "%s.%s", get_docbname(), dev.fext);
        }
        }
        strcpy(fname, print_file);
        strcpy(fname, print_file);
	prstream = grace_openw(fname);
    } else {
    } else {
      int hdfd;
        s = get_print_cmd();
        s = get_print_cmd();
        if (s == NULL || s[0] == '\0') {
        if (s == NULL || s[0] == '\0') {
            errmsg("No print command defined, output aborted");
            errmsg("No print command defined, output aborted");
            return;
            return;
        }
        }
        tmpnam(fname);
      strcpy(fname, "grace-hardcopy-XXXXXX");
        /* VMS doesn't like extensionless files */
        hdfd=mkstemp(fname);
        strcat(fname, ".prn");
      if (hdfd == -1) {
              errmsg("Could not create a temporary file, output aborted.");
              return;
      }
      prstream = fdopen(hdfd, "wb");
      if (prstream == NULL) {
              errmsg("Could not create a temporary file, output aborted.");
              return;
      }
    }
    }
    
    
    prstream = grace_openw(fname);
    
    
    if (prstream == NULL) {
    if (prstream == NULL) {
        return;
        return;
 Lines 776-787    Link Here 
 */
 */
void do_ext_editor(int gno, int setno)
void do_ext_editor(int gno, int setno)
{
{
    char *fname, ebuf[256];
    char fname[64], ebuf[256];
    FILE *cp;
    FILE *cp;
    int save_autos;
    int save_autos;
    fname = tmpnam(NULL);
    strcpy(fname, "grace-XXXXXX");
    cp = grace_openw(fname);
    cp = fdopen(mkstemp(fname), "wb");
    if (cp == NULL) {
    if (cp == NULL) {
    }
    }