diff --git a/src/modules/files/efuns.c b/src/modules/files/efuns.c index 155a8d614429a582fe82097bd3e92c9f9f0aac15..3dce99a2680a59cc20fa2f032fb6715a80eeec2b 100644 --- a/src/modules/files/efuns.c +++ b/src/modules/files/efuns.c @@ -83,7 +83,7 @@ void f_file_stat(INT32 args) error("Bad argument 1 to file_stat()\n"); s = sp[-args].u.string->str; - l = (args>1 && !IS_ZERO(sp-1-args))?1:0; + l = (args>1 && !IS_ZERO(sp+1-args))?1:0; THREADS_ALLOW(); if(l) {