[svn-r7346] Purpose:
bug fix Description: On windows, rindex is not supported. strrchr is used instead. Solution: Platforms tested: linux 2.4, windows 2000 (since the change is minimal and three other platforms have been used to test for 1.7 branch, so no needs to test more). Misc. update:
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include "H5private.h"
|
||||
#include "h5tools.h"
|
||||
#include "h5tools_utils.h"
|
||||
#include <strings.h>
|
||||
|
||||
/* module-scoped variables */
|
||||
static const char *progname = "h5dump";
|
||||
@@ -2913,7 +2912,7 @@ main(int argc, const char *argv[])
|
||||
char * ns;
|
||||
char *indx;
|
||||
ns = strdup(xmlnsprefix);
|
||||
indx = rindex(ns,(int)':');
|
||||
indx = strrchr(ns,(int)':');
|
||||
if (indx) *indx = '\0';
|
||||
|
||||
printf("<%sHDF5-File xmlns:%s=\"http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File\" "
|
||||
|
||||
Reference in New Issue
Block a user