We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f1ce7 commit 2a14159Copy full SHA for 2a14159
1 file changed
sim_fio.c
@@ -271,7 +271,7 @@ sptr = (const unsigned char *) bptr; /* init input ptr */
271
for (i = (int32)nbuf; i > 0; i--) { /* loop on buffers */
272
c = (i == 1)? lcnt: nelem;
273
sim_buf_copy_swapped (sim_flip, sptr, size, c);
274
- sptr = sptr + size * count;
+ sptr = sptr + size * c;
275
c = fwrite (sim_flip, size, c, fptr);
276
if (c == 0) {
277
free(sim_flip);
0 commit comments