NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello, When compiling with gcc 4.4.1 (from a mandriva 2010 distribution) there is an error on a call to snprintf (the format is missing). Here is the patch which corrects this: --- ncdump/dumplib.c.orig 2010-04-26 18:12:49.000000000 +0200 +++ ncdump/dumplib.c 2010-04-26 18:18:29.000000000 +0200 @@ -1005,7 +1005,7 @@ char *prefix = "0X"; int prelen = strlen(prefix); - snprintf(sp, prelen + 1, prefix); + snprintf(sp, prelen + 1, "%s", prefix); sp += prelen; for(i = 0; i < size; i++) { int res; Ph.P. CLS - Space oceanography division.
netcdfgroup
archives: