# HG changeset patch # User Matti Hamalainen # Date 1532348137 -10800 # Node ID bec158e00f17da0bf54ab65964fd0c5da61e9750 # Parent 8e38fa3c4f9817927f69ae95e11a9334e7d795b9 Fix displayed output crop length. diff -r 8e38fa3c4f98 -r bec158e00f17 tools/objlink.c --- 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);