comparison tools/objlink.c @ 2012:bec158e00f17

Fix displayed output crop length.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Jul 2018 15:15:37 +0300
parents 161e731eb152
children e3f0eaf23f4f
comparison
equal deleted inserted replaced
2011:8e38fa3c4f98 2012:bec158e00f17
472 { 472 {
473 size_t cropLen; 473 size_t cropLen;
474 if (!dmParseSection(optArg, &optCropStart, &optCropEnd, NULL, FALSE)) 474 if (!dmParseSection(optArg, &optCropStart, &optCropEnd, NULL, FALSE))
475 return FALSE; 475 return FALSE;
476 476
477 cropLen = optCropEnd - optCropEnd + 1; 477 cropLen = optCropEnd - optCropStart + 1;
478 dmMsg(1, "Cutting output to $%.4x - $%.4x ($%x, %d bytes)\n", 478 dmMsg(1, "Cutting output to $%.4x - $%.4x ($%x, %d bytes)\n",
479 optCropStart, optCropEnd, cropLen, cropLen); 479 optCropStart, optCropEnd, cropLen, cropLen);
480 480
481 optCropOutput = TRUE; 481 optCropOutput = TRUE;
482 } 482 }