diff options
author | hpa <hpa> | 2005-08-21 21:31:34 +0000 |
---|---|---|
committer | hpa <hpa> | 2005-08-21 21:31:34 +0000 |
commit | 1e0fa46ba463d8eb671dde70a9ccff878132ad31 (patch) | |
tree | 7a674d702153e00162eb9883787690d2aa26cb15 | |
parent | 9324bb5c151361ad460854e352ed6279a721a046 (diff) | |
download | syslinux-1e0fa46ba463d8eb671dde70a9ccff878132ad31.tar.gz |
Fix handling of images with DOSEMU headers.syslinux-3.10-pre17
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | memdisk/memdisk.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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; |