X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fstat.psi;h=dc89119624d37cc474ee60b3549d440ee74f1472;hp=17dc18851597e53c0cd5c39e9e3fd2d78f55795f;hb=c9b3436bd51a4dcf7d6cc6817d4c7a8ad99538d4;hpb=ea0162a1698563a49de50456cd3f2cc18b83a05e diff --git a/psi.d/stat.psi b/psi.d/stat.psi index 17dc188..dc89119 100644 --- a/psi.d/stat.psi +++ b/psi.d/stat.psi @@ -1,7 +1,7 @@ // extern int stat(char *path, struct stat *buf); function psi\stat(string $path, array &$buf = NULL) : int { let path = strval($path); - let buf = calloc(1, struct stat); + let buf = calloc(1, psi\SIZEOF_STRUCT_STAT); return to_int(stat); set $buf = to_array(*buf, to_int(st_dev),