Skip to content

Commit 2a14159

Browse files
LegalizeAdulthoodpkoning2
authored andcommitted
Correct count in sim_fwrite
Fixes #539
1 parent 45f1ce7 commit 2a14159

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sim_fio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ sptr = (const unsigned char *) bptr; /* init input ptr */
271271
for (i = (int32)nbuf; i > 0; i--) { /* loop on buffers */
272272
c = (i == 1)? lcnt: nelem;
273273
sim_buf_copy_swapped (sim_flip, sptr, size, c);
274-
sptr = sptr + size * count;
274+
sptr = sptr + size * c;
275275
c = fwrite (sim_flip, size, c, fptr);
276276
if (c == 0) {
277277
free(sim_flip);

0 commit comments

Comments
 (0)