Differences From Artifact [83b21b531b]:
- File
src/OFFile.h
— part of check-in
[029511474c]
at
2009-02-14 17:26:12
on branch trunk
— Always use #include for libc headers due to glibc being broken.
Do the same for win32 headers, just in case. They should work with
#import, but you never know ;). (user: js, size: 3941) [annotate] [blame] [check-ins using]
To Artifact [8001780b38]:
- File
src/OFFile.h
— part of check-in
[09e6b3fc7b]
at
2009-04-07 15:44:54
on branch trunk
— Returning newly allocated buffers on reading is a bad idea.
The programmer might forget that some of the data is arbitrary because
there was less data than he requested which might lead to serious
problems. (user: js, size: 3629) [annotate] [blame] [check-ins using]
︙ | |||
123 124 125 126 127 128 129 | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | - - - - - - - - - - - | * The buffer MUST be at least size * nitems big! * \return The number of bytes read */ - (size_t)readNItems: (size_t)nitems ofSize: (size_t)size intoBuffer: (uint8_t*)buf; |