Ticket #34066: patch-gmt_shore_c.diff
File patch-gmt_shore_c.diff, 707 bytes (added by florian@…, 13 years ago) |
---|
-
src/gmt_shore.c
1145 1145 while (fgets (dir, BUFSIZ, fp)) { /* Loop over all input lines until found or done */ 1146 1146 GMT_chop (dir); /* Chop off LF or CR/LF */ 1147 1147 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"); 1149 1149 if (!access (path, R_OK)) { 1150 1150 fclose (fp); 1151 1151 return (path); … … 1156 1156 1157 1157 /* 2. Then check for the named file itself */ 1158 1158 1159 if (GMT_getsharepath ("coast", stem, ". cdf", path)) return (path);1159 if (GMT_getsharepath ("coast", stem, ".nc", path)) return (path); 1160 1160 1161 1161 return (NULL); 1162 1162 }