On Sun, 13 Nov 2005 17:22:42 -0800 (PST), patrick ~ wrote: >I've been "looking" in some of the >ports I have "interest" in and I >have noticed a lot of changes in >the patches directory where we are >replacing 'strcmp' instances with >'strncmp'. > >e.g., > > /* Made up example of course */ >- if (!strcmp(buf,"n/a")) >+ if (!strncmp(buf,"n/a",3)) > > >Is there a real value in doing this? >I don't see it. > >Can someone shed some light on this >for me please.
Are you just trolling? If not, how come you have not been "looking" in the archives? Mrs Google can help you too: http://justfuckinggoogleit.com/search?q=strncmp+openbsd+why > >Tia, >--patrick > >// Please don't cc: me. I'm subscribed. > > > >__________________________________ >Yahoo! FareChase: Search multiple travel sites in one click. >http://farechase.yahoo.com > > >From the land "down under": Australia. Do we look <umop apisdn> from up over? Do NOT CC me - I am subscribed to the list. Replies to the sender address will fail except from the list-server.