pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-25
2001-09-25 17:39:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>
494968805f62bd8bbef709c8c0a56fc8f2db6452 (
8
lines) (+
4
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed string "leak" in f_add().
Rev: src/operators.c:1.141
6:
/**/ #include "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
140
2001/09/
24
15
:
02
:
13
grubba Exp $");
+
RCSID("$Id: operators.c,v 1.
141
2001/09/
25
17
:
39
:
42
grubba Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h"
443:
INC_PCHARP(buf,strlen(buffer)); } }
-
r
->len
=SUBTRACT_PCHARP(buf,MKPCHARP_STR(r))
;
-
low_set_index(r,r->len,0
);
-
r=low_end_shared_string(r);
+
r
=
realloc_unlinked_string(r,
SUBTRACT_PCHARP(buf,
MKPCHARP_STR(r))
)
;
+
r
=
low_end_shared_string(r);
pop_n_elems(args); push_string(r); break;