[MINC-development] mincstats
Richard Boyes
rboyes@dementia.ion.ucl.ac.uk
Fri, 5 Sep 2003 10:23:30 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C37397.C08D7DA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
hi all,
while using mincstats i got a segfault from the following:
rboyes@drg43:/tmp/minctest /home/packages/bin/mincstats -clobber -histogram
hist correct14457.mnc
Segmentation fault
which seems to occur because i didn't supply a mask, which some
of the output requires (if a mask is not passed in you end up printing
a null pointer which gives a seg fault). A diff file to apply a
fix is attached if anyone wants it.
richard.
------=_NextPart_000_0005_01C37397.C08D7DA0
Content-Type: application/octet-stream;
name="mincstats.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="mincstats.diff"
325d324=0A=
< =0A=
327c326=0A=
< =0A=
---=0A=
> =0A=
329c328=0A=
< nfiles++;=0A=
---=0A=
> nfiles++;=0A=
637,639c636=0A=
< if(infiles[1] !=3D NULL) {=0A=
< (void) fprintf(FP, "# mask file: %s\n", infiles[1]);=0A=
< }=0A=
---=0A=
> (void) fprintf(FP, "# mask file: %s\n", =
infiles[1]);=0A=
692c689=0A=
< if (All && !quiet && (infiles[1] !=3D NULL)) { (void) =
fprintf(stdout, "Mask file: %s\n", infiles[1]);}=0A=
---=0A=
> if (All && !quiet) { (void) fprintf(stdout, "Mask file: =
%s\n", infiles[1]);}=0A=
------=_NextPart_000_0005_01C37397.C08D7DA0--