aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-02-02 20:40:47 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:45 +0100
commit6319006aeb8a7888f6f7acf6d4ace032d1c41436 (patch)
tree7d3adc63b78b390162cecfa51658ac83c44011d5 /src/hdfsee.c
parent57a04749684d8969b263320ac9cc380d67b40795 (diff)
hdfsee: Fix --simple-rings
Diffstat (limited to 'src/hdfsee.c')
-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;