[BACK]Return to load.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

Diff for /OpenXM_contrib2/asir2000/parse/load.c between version 1.12 and 1.13

version 1.12, 2004/03/05 08:34:43 version 1.13, 2004/03/05 08:45:49
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/parse/load.c,v 1.11 2004/03/02 08:28:49 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/load.c,v 1.12 2004/03/05 08:34:43 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 113  char *search_executable(char *name)
Line 113  char *search_executable(char *name)
         nlen = strlen(name);          nlen = strlen(name);
         for ( s = (char *)getenv("PATH"); s; ) {          for ( s = (char *)getenv("PATH"); s; ) {
                 c = (char *)index(s,':');                  c = (char *)index(s,':');
                 len = c ? c-s : strlen(dir);                  len = c ? c-s : strlen(s);
                 if ( len >= BUFSIZ ) continue;                  if ( len >= BUFSIZ ) continue;
                 strncpy(dir,s,len); dir[len] = 0;                  strncpy(dir,s,len); dir[len] = 0;
                 if ( c ) s = c+1;                  if ( c ) s = c+1;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>