This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Ludovic, If you are using netCDF-3.6.2 (the latest full actual release), a fix for the problem would require recompiling ncdump after inserting one line in the file ncdump/dumplib.c, before line 132, according to this context diff: $ diff -c dumplib.c~ dumplib.c *** dumplib.c~ Fri Feb 16 06:39:09 2007 --- dumplib.c Sat Apr 19 19:29:19 2008 *************** *** 129,134 **** --- 129,135 ---- nc_strerror(nc_stat)); (void) fflush(stderr); } + cfmt[cfmt_len] = '\0'; return &cfmt[0]; } break; This fix will be in an upcoming snapshot release or in the netCDF-4.0-beta2 release, if you would rather wait for it. If you have problems applying the patch or rebuilding, please let us know. Thanks again for reporting the bug. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: GFG-507049 Department: Support netCDF Priority: Normal Status: Closed