Chameleon

View msdos.c-fix-2327.patch

1diff --git a/i386/libsaio/msdos.c b/i386/libsaio/msdos.c
2index c5b9a3c..3557805 100644
3--- a/i386/libsaio/msdos.c
4+++ b/i386/libsaio/msdos.c
5@@ -394,14 +394,14 @@ getnextdirent (CICell ih, uint16_t *longname, struct msdosdirstate *st)
6 st->vfatchecksum = 0;
7 st->vfatnumber = 0;
8 st->nument++;
9-if (((int)(!st->root16 &&st->nument * sizeof (struct direntry))>=msdosclustersize)
10-|| ((int)(st->root16 &&st->nument * sizeof (struct direntry))>=msdosbps))
11+if ((!st->root16 &&st->nument * sizeof (struct direntry)>=msdosclustersize)
12+|| (st->root16 &&st->nument * sizeof (struct direntry)>=msdosbps))
13 st->nument = 0;
14 return dirp;
15 }
16 st->nument++;
17-if (((int)(!st->root16 &&st->nument * sizeof (struct direntry))>=msdosclustersize)
18-|| ((int)(st->root16 &&st->nument * sizeof (struct direntry))>=msdosbps))
19+if ((!st->root16 &&st->nument * sizeof (struct direntry)>=msdosclustersize)
20+|| (st->root16 &&st->nument * sizeof (struct direntry)>=msdosbps))
21 st->nument = 0;
22 }
23 }
24

Archive Download this file

Attachment to issue 382

Created: 6 years 3 months ago by bltz