X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fglob.psi;h=02d1c3d68811b4eb767239666d87f2fbded07ea4;hp=2bb952e57e6c7dc8bbae6d446abd555549544c06;hb=0e6d6d0bdaf5cca59d04a8f4e9fcca8a65f341d8;hpb=b4508f6b917660970f887894a6aaed6c220a2c72 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); }