summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-21 21:31:34 +0000
committerhpa <hpa>2005-08-21 21:31:34 +0000
commit1e0fa46ba463d8eb671dde70a9ccff878132ad31 (patch)
tree7a674d702153e00162eb9883787690d2aa26cb15
parent9324bb5c151361ad460854e352ed6279a721a046 (diff)
downloadsyslinux-1e0fa46ba463d8eb671dde70a9ccff878132ad31.tar.gz
Fix handling of images with DOSEMU headers.syslinux-3.10-pre17
-rw-r--r--NEWS2
-rw-r--r--memdisk/memdisk.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 9d6c5a07..2969e896 100644
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,8 @@ Changes in 3.10:
* Temporarily disable the idle API call on PXELINUX, due to
some platforms on which the idle API call seems to hang; this
problem has not yet been debugged.
+ * MEMDISK: the handling of DOSEMU-headered images was broken;
+ fix it.
Changes in 3.09:
* gcc4 compilation fix.
diff --git a/memdisk/memdisk.h b/memdisk/memdisk.h
index f7283886..302cbbd9 100644
--- a/memdisk/memdisk.h
+++ b/memdisk/memdisk.h
@@ -55,7 +55,7 @@ memcmp(const void *__a, const void *__b, unsigned int __n)
const unsigned char *__bb = __b;
int __d;
- while ( __n ) {
+ while ( __n-- ) {
__d = *__bb++ - *__aa++;
if ( __d )
return __d;