Branch: Tag:

1999-02-27

1999-02-27 22:27:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in end_shared_string().

Rev: src/stralloc.c:1.54

3:   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/ + /**/   #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"
15:      #include <ctype.h>    - RCSID("$Id: stralloc.c,v 1.53 1999/02/01 02:41:48 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.54 1999/02/27 22:27:02 grubba Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3
466:    break;       case 1: -  s2=begin_wide_shared_string(s->len,2); +  s2=begin_wide_shared_string(s->len,1);    convert_2_to_1(STR1(s2),STR2(s),s->len);    free((char *)s);    s=s2;