From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: nickc@cygnus.com Cc: binutils@sourceware.cygnus.com Subject: Re: Proposed objcopy patch Date: Thu, 01 Jul 1999 00:00:00 -0000 Message-id: <199905142137.RAA31560@envy.delorie.com> References: <199905142116.OAA18159@elmo.cygnus.com> <199905142116.OAA18159@elmo.cygnus.com> X-SW-Source: 1999-q2/msg00039.html I'd use strncmp, not strstr, as you only want to check if "pei-" appears at the *beginning* of the target name. Still not bulletproof, but better.