X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fstat.psi;h=68f67814df9d0f954874e148d8bec5c013fd7c7f;hp=3d0e62330efdbd30e0c93c04703e333e7dcde847;hb=c0873cbbe9e5a83305adbc2bbd94aede5437f33d;hpb=cffcbdd1df9f6d5dcf78f49a3d1b44cefe21b2f5 diff --git a/psi.d/stat.psi b/psi.d/stat.psi index 3d0e623..68f6781 100644 --- a/psi.d/stat.psi +++ b/psi.d/stat.psi @@ -2,7 +2,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, psi\SIZEOF_STRUCT_STAT); + let buf = calloc(1, sizeof(struct stat)); return stat(path, buf) as to_int(stat); set $buf = to_array(*buf, to_int(st_dev),