d1d1689
diff -u argyll_orig/scanin/scanrd.c argyll/scanin/scanrd.c
d1d1689
--- argyll_orig/scanin/scanrd.c	2008-01-08 00:04:01.000000000 +0100
d1d1689
+++ argyll/scanin/scanrd.c	2008-01-08 04:21:38.000000000 +0100
d1d1689
@@ -2908,6 +2908,7 @@
d1d1689
 			sp->P[e] = -2.0;	/* Signal no value */
d1d1689
 		free(s->sbend[s->cei]->ps[0]);		/* Free up histogram array */
d1d1689
 		s->sbend[s->cei]->active = 0;
d1d1689
+		s->cei++;
d1d1689
 	END_FOR_ALL_ITEMS(sp);
d1d1689
 
d1d1689
 	return 0;