pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-21
2001-09-21 21:53:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7d8d2a62ece9ca56107e5ecc381680609b89319a (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.2
Real fix for [bug
2314 (#2314)
].
Rev: src/stralloc.c:1.120
26:
#define HUGE HUGE_VAL #endif /*!HUGE*/
-
RCSID("$Id: stralloc.c,v 1.
119
2001/
08
/
29
11
:
52
:
11
grubba Exp $");
+
RCSID("$Id: stralloc.c,v 1.
120
2001/
09
/
21
21
:
53
:
08
grubba Exp $");
#define BEGIN_HASH_SIZE 997 #define MAX_AVG_LINK_LENGTH 3
1795:
(size_t)(s->s->len + chars)); ptrdiff_t oldlen = s->s->len;
+
s->s->len = s->malloced; /* Restore the real length */
s->s = realloc_unlinked_string(s->s, newlen); s->s->len = oldlen; s->malloced = newlen;