pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-21
2001-09-21 21:53:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ef17c088198c47d60841858ccfc1dd1df3f70a0f (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Real fix for [bug
2314 (#2314)
].
Rev: src/stralloc.c:1.135
27:
#define HUGE HUGE_VAL #endif /*!HUGE*/
-
RCSID("$Id: stralloc.c,v 1.
134
2001/09/
06
08
:
07
:
10
hubbe
Exp $");
+
RCSID("$Id: stralloc.c,v 1.
135
2001/09/
21
21
:
53
:
19
grubba
Exp $");
/* #define STRALLOC_USE_PRIMES */
1967:
(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;