aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;