summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-26 23:48:09 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-26 23:48:09 +0000
commit8215a54b21b3088208aa0863b655e9562750219e (patch)
tree3fe459000b71e6534b4c2a7976346929aff214f1
parentccfd9e2950d3c1345d087a9b5301a8fb33b4b9da (diff)
downloadnasm-8215a54b21b3088208aa0863b655e9562750219e.tar.gz
Fix off-by-one error found when running theowl's test cases.
-rw-r--r--output/outobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outobj.c b/output/outobj.c
index c15f23fe..65a1107f 100644
--- a/output/outobj.c
+++ b/output/outobj.c
@@ -966,7 +966,7 @@ fprintf(stderr, " obj_deflabel: %s, seg=%ld, off=%ld, is_global=%d, %s\n",
eb->next = NULL;
ebtail = &eb->next;
}
- while (i > EXT_BLKSIZ) {
+ while (i >= EXT_BLKSIZ) {
if (eb && eb->next)
eb = eb->next;
else {