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.
There is a small bug in cfltbop.c which causes an array error: /* * Extract the filename from the end of the path. */ done = G_FALSE; lenname = strlen (pathfile); cpos = lenname; while ( (done == G_FALSE) && (cpos >= 0) ) { cpos--; if ( pathfile[cpos] == '/' || pathfile[cpos] == ':' ) { done = G_TRUE; } } The comparison (cpos >= 0) should be (cpos > 0). cpos is decremented inside the while loop and if allowed to be equal to zero, will result in pathfile[cpos]. This error is a problem with HPUX-11.0. Steve Chiswell Unidata User Support