This is patch #1 for netcdf 2.3.2. If you have netcdf.2.3.2pl2 or have obtained netcdf.tar.Z after 21 April 1994, this patch has already been applied, so you can ignore it. This patch accomplishes the following: BUG FIXES Fixes occurrence of a segmentation violation when trying to use "ncgen -c" generate the C code to define an attribute containing a printf-type format string, e.g. "%s". This patch-file is designed to be applied from the netcdf/ncgen source directory via Larry Wall's patch(1) utility, e.g. $ cd /usr/local/src/netcdf-2.3.2/ncgen $ patch < this_file =================================================================== diff -c1 -r1.28 generate.c *** /tmp/RCSAa05027 Tue Jun 15 11:13:44 1993 --- generate.c Tue Jun 15 11:12:09 1993 *************** *** 79,81 **** - #define fpr (void) fprintf --- 79,80 ---- *************** *** 90,93 **** ! fpr(cout, stmnt); ! fpr(cout, "\n"); } --- 89,92 ---- ! fputs(stmnt, cout); ! fputs("\n", cout); } *************** *** 366,369 **** if(stmnt[0] == '*') { ! fpr(fout, stmnt); ! fpr(fout,"\n"); return; --- 365,368 ---- if(stmnt[0] == '*') { ! fputs(stmnt, fout); ! fputs("\n", fout); return; *************** *** 374,377 **** derror("FORTRAN statement too long: %s",stmnt); ! fpr(fout, " %c", cont[line++]); ! fpr(fout, "%.66s\n", stmnt); len -= 66; --- 373,376 ---- derror("FORTRAN statement too long: %s",stmnt); ! (void) fprintf(fout, " %c", cont[line++]); ! (void) fprintf(fout, "%.66s\n", stmnt); len -= 66;