Re: [AD] gfxinfo

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2001-11-28, Lo'oRiS il Kabukimono <_lano_@xxxxxxxxxx> wrote:
> except one thing: why are you using strcmp instead of strncmp?
> i thought strncmp was safer.

There's no security concerns with comparing strings! You were doing
strncmp(S1, S2, strlen(S1)), which is exactly the same as
strcmp(S1, S2).



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/