summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-05-28 18:58:54 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-05-28 18:58:54 (GMT)
commit3779274df6d62e2372af5a3b4ad6890c777b6fdc (patch)
tree698c9e3ca9bfa775b91109277dc6f959b98f60f7 /tools/h5tools.c
parent01191731a61cf87b07e2989c046bb8c463d707f7 (diff)
downloadhdf5-3779274df6d62e2372af5a3b4ad6890c777b6fdc.zip
hdf5-3779274df6d62e2372af5a3b4ad6890c777b6fdc.tar.gz
hdf5-3779274df6d62e2372af5a3b4ad6890c777b6fdc.tar.bz2
[svn-r1286]
added a line i thought was there but I must have removed it by accident
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index d058fc0..9c6aae1 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -1589,6 +1589,7 @@ static void display_string
memmove(tempstr.s, tempstr.s + 1, tempstr.len -1);
tempstr.s[tempstr.len - 2] = '\0';
+ tempstr.len = tempstr.len - 2;
free_space = NCOLS - indent - COL - strlen(out_buf);
@@ -1621,8 +1622,8 @@ static void display_string
printf("%s\" //\n", out_buf);
first_row = 0;
} else {
- indentation(indent+COL);
- printf("%s\"", out_buf);
+ indentation(indent+COL);
+ printf("%s\"", out_buf);
strncpy(out_buf, tempstr.s, x);
out_buf[x] = '\0';
printf("%s\" //\n", out_buf);
@@ -1736,7 +1737,7 @@ static void display_string
out_buf[0] = '\0';
row_size = 0;
} else {
- strcat(out_buf, "\"");
+ strcat(out_buf, "\"");
strcat(out_buf, tempstr.s);
strcat(out_buf, "\",");
if ((int)strlen(out_buf) < (NCOLS-indent-COL)) strcat(out_buf, " ");