
Testing if it returns -1 is always false. - Use the same expression for the size to write and for the size to advance a pointer.
Testing if it returns -1 is always false. - Use the same expression for the size to write and for the size to advance a pointer.