diff 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
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);