aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hdfsee.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c
index 72738286..49e4b57f 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -191,10 +191,10 @@ int main(int argc, char *argv[])
thisvalue[j] = reslist[i];
j++;
} else {
- j = 0;
- thisvalue[i] = '\0';
+ thisvalue[j] = '\0';
ring_radii[n_rings] = atof(thisvalue);
n_rings++;
+ j = 0;
}
}
break;