View | Details | Raw Unified | Return to bug 30685
Collapse All | Expand All

(-)hexdump/parse.c (-3 / +1 lines)
Lines 413-419 Link Here
413
	 * If, rep count is greater than 1, no trailing whitespace
413
	 * If, rep count is greater than 1, no trailing whitespace
414
	 * gets output from the last iteration of the format unit.
414
	 * gets output from the last iteration of the format unit.
415
	 */
415
	 */
416
	for (fu = fs->nextfu;; fu = fu->nextfu) {
416
	for (fu = fs->nextfu; fu != NULL; fu = fu->nextfu) {
417
		if (!fu->nextfu && fs->bcnt < blocksize &&
417
		if (!fu->nextfu && fs->bcnt < blocksize &&
418
		    !(fu->flags&F_SETREP) && fu->bcnt)
418
		    !(fu->flags&F_SETREP) && fu->bcnt)
419
			fu->reps += (blocksize - fs->bcnt) / fu->bcnt;
419
			fu->reps += (blocksize - fs->bcnt) / fu->bcnt;
Lines 426-433 Link Here
426
			if (p2)
426
			if (p2)
427
				pr->nospace = p2;
427
				pr->nospace = p2;
428
		}
428
		}
429
		if (!fu->nextfu)
430
			break;
431
	}
429
	}
432
#ifdef DEBUG
430
#ifdef DEBUG
433
	for (fu = fs->nextfu; fu; fu = fu->nextfu) {
431
	for (fu = fs->nextfu; fu; fu = fu->nextfu) {

Return to bug 30685