X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fglob.psi;fp=psi.d%2Fglob.psi;h=02d1c3d68811b4eb767239666d87f2fbded07ea4;hp=2bb952e57e6c7dc8bbae6d446abd555549544c06;hb=58066949f02dbdbc3ba7b3fa3a0e01836fa72663;hpb=756a2c4350162a9a7f930bdc0ec7718ff13ea48c diff --git a/psi.d/glob.psi b/psi.d/glob.psi index 2bb952e..02d1c3d 100644 --- a/psi.d/glob.psi +++ b/psi.d/glob.psi @@ -9,7 +9,7 @@ function psi\glob(string $pattern, int $flags, array &$glob = NULL) : int { to_int(gl_pathc), to_int(gl_offs), to_int(gl_flags), - to_array(**gl_pathv, gl_pathc, gl_offs, to_string(*gl_pathv)) + to_array(**gl_pathv, gl_pathc + gl_offs, to_string(*gl_pathv)) ); free globfree(buf); }