Ticket #41226: patch-ps2raster.2.diff

File patch-ps2raster.2.diff, 415 bytes (added by florian@…, 11 years ago)

Patchfile fixes Mavericks bug

  • src/ps2raster.c

     
    505505        for (k = 0; k < n_files; k++) {
    506506                excessK = FALSE;
    507507                memset ((void *)out_file, 0, BUFSIZ);
    508                 strcpy(ps_file,ps_names[k]);
     508                if (ps_file != ps_names[k]) strcpy(ps_file,ps_names[k]);
    509509                if ((fp = fopen (ps_file, "r")) == NULL) {
    510510                        fprintf (stderr, "%s: Cannot to open file %s\n", GMT_program, ps_file);
    511511                        continue;