aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk/memdisk.h
diff options
context:
space:
mode:
Diffstat (limited to 'memdisk/memdisk.h')
-rw-r--r--memdisk/memdisk.h2
1 files changed, 1 insertions, 1 deletions
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;