changeset 2012:bec158e00f17

Fix displayed output crop length.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Jul 2018 15:15:37 +0300
parents 8e38fa3c4f98
children 862a943afff4
files tools/objlink.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/objlink.c	Sun Jul 08 00:47:22 2018 +0300
+++ b/tools/objlink.c	Mon Jul 23 15:15:37 2018 +0300
@@ -474,7 +474,7 @@
             if (!dmParseSection(optArg, &optCropStart, &optCropEnd, NULL, FALSE))
                 return FALSE;
 
-            cropLen = optCropEnd - optCropEnd + 1;
+            cropLen = optCropEnd - optCropStart + 1;
             dmMsg(1, "Cutting output to $%.4x - $%.4x ($%x, %d bytes)\n",
                 optCropStart, optCropEnd, cropLen, cropLen);