> Based on what Dale said, since memory is never allocated, I guess there's
no
> problem.  I certainly don't allocate any and fread_word appears not to.

Right.

I would personally make that:
        strncpy (bfield_data.best_ratio.name, tmp,
           sizeof(bfield_data.best_ratio));

So you know you'll never write past the buffer.

--Palrich.



Reply via email to