pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-11-05
2008-11-05 15:03:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>
f2f763f772789273578f511b5df82ee279f603db (
7
lines) (+
3
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed bugs in end_and_resize_shared_string() with regards to wide strings.
Rev: src/stralloc.c:1.233
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: stralloc.c,v 1.
232
2008/11/05
12
:
09
:
36
grubba Exp $
+
|| $Id: stralloc.c,v 1.
233
2008/11/05
15
:
03
:
39
grubba Exp $
*/ #include "global.h"
898:
* * NOTE: We lose track of the actual buffer length here, so don't * use this function to shorten a string in decrements.
-
*
-
* FIXME: Wide strings get only a partial NUL-termination.
+
*/ str->len=len;
-
str
->str[
len
]=
0;
+
SET_INDEX_PCHARP(MKPCHARP_STR(
str
),
len
,
0
)
;
return end_shared_string(str); } tmp = make_shared_binary_pcharp(MKPCHARP_STR(str),len);