Ticket #34066: patch-gmt_shore_c.diff

File patch-gmt_shore_c.diff, 707 bytes (added by florian@…, 9 years ago)

patchfile 2

  • src/gmt_shore.c

     
    11451145                while (fgets (dir, BUFSIZ, fp)) {       /* Loop over all input lines until found or done */
    11461146                        GMT_chop (dir);         /* Chop off LF or CR/LF */
    11471147                        if (dir[0] == '#' || dir[0] == '\0') continue;  /* Comment or blank */
    1148                         sprintf (path, "%s/%s%s", dir, stem, ".cdf");
     1148                        sprintf (path, "%s/%s%s", dir, stem, ".nc");
    11491149                        if (!access (path, R_OK)) {
    11501150                                fclose (fp);
    11511151                                return (path);
     
    11561156       
    11571157        /* 2. Then check for the named file itself */
    11581158
    1159         if (GMT_getsharepath ("coast", stem, ".cdf", path)) return (path);
     1159        if (GMT_getsharepath ("coast", stem, ".nc", path)) return (path);
    11601160
    11611161        return (NULL);
    11621162}