Branch: Tag:

2001-10-30

2001-10-30 10:48:45 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for [bug 2433 (#2433)].

Rev: src/builtin_functions.c:1.349

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.348 2001/09/25 03:15:32 hubbe Exp $"); + RCSID("$Id: builtin_functions.c,v 1.349 2001/10/30 10:48:45 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
589:    "Start must not be greater than the "    "length of the string.\n");    +  /* Handle searching for the empty string. */ +  if (Pike_sp[1-args].u.string->len) {    start=string_search(Pike_sp[-args].u.string,    Pike_sp[1-args].u.string,    start); -  +  }       pop_n_elems(args);    push_int64(start);