$NetBSD: patch-af,v 1.2 2001/04/19 20:51:31 jtb Exp $ --- src/grd2cpt.c.orig Thu Apr 19 18:02:09 2001 +++ src/grd2cpt.c @@ -64,7 +64,7 @@ /* Get list of available color tables in GMT /share */ - sprintf (CPT_lis, "%s%cshare%cGMT_CPT.lis\0", GMTHOME, DIR_DELIM, DIR_DELIM); + sprintf (CPT_lis, "%s%cshare%cgmt%cGMT_CPT.lis\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM); if ((fpc = fopen (CPT_lis, "r")) == NULL) { fprintf (stderr, "%s: ERROR: Cannot open file %s\n", GMT_program, CPT_lis); @@ -180,9 +180,9 @@ if (!ok) { /* No table in current dir, try /share */ if (table) - sprintf (CPT_file, "%s%cshare%cGMT_%s.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, table); + sprintf (CPT_file, "%s%cshare%cgmt%cGMT_%s.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM, table); else /* Default to rainbow colors */ - sprintf (CPT_file, "%s%cshare%cGMT_rainbow.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM); + sprintf (CPT_file, "%s%cshare%cgmt%cGMT_rainbow.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM); if (access (CPT_file, R_OK)) { fprintf (stderr, "%s: ERROR: Cannot find colortable %s\n", GMT_program, CPT_file);