Skip to content

Commit

Permalink
Increment mempos on write.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jun 25, 2012
1 parent 89276bd commit 580a819
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fmemopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static int writefn(void *handler, const char *buf, int size) {
size = available;
}
memcpy(mem->buffer, buf, sizeof(char) * size);
mem->pos += size;

return size;
}
Expand Down

0 comments on commit 580a819

Please sign in to comment.