pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-06-09
2001-06-09 15:25:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>
9bfcd2808426f0c54d55474a3dd6963ab6961e68 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.0
combine_path() is not wide-string safe.
Rev: src/builtin_functions.c:1.262
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
261
2001/06/
06
02
:
22
:
29
mast
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
262
2001/06/
09
15
:
25
:
36
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
851:
if(args<1) SIMPLE_TOO_FEW_ARGS_ERROR("combine_path", 1);
-
if(sp[-args].type != T_STRING)
+
if(
(
sp[-args].type != T_STRING)
||
+
(sp[-args].u.string->size_shift))
SIMPLE_BAD_ARG_ERROR("combine_path", 1, "string"); path=sp[-args].u.string->str;
859:
for(e=1;e<args;e++) { char *newpath;
-
if(sp[e-args].type != T_STRING)
+
if(
(
sp[e-args].type != T_STRING)
||
+
(sp[e-args].u.string->size_shift))
{ if(dofree) free(path); SIMPLE_BAD_ARG_ERROR("combine_path", e+1, "string");