On Tue, Apr 6, 2010 at 9:41 PM, Ted Unangst <ted.unan...@gmail.com> wrote:
>>  s = (char *) malloc(st.st_size);
>
> If you didn't have bogus casts in your code, the compiler could tell
> you what's wrong with it.

You're right, and in fact, I put the cast there to hide that
particular compiler warning
without realizing that it was significant.  I actually simply missed
the header file
for malloc (not sure how)...

Reply via email to