From a2868ff65166b27acbbda4af1b9df84ed3171541 Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 29 Oct 2002 21:35:28 +0000 Subject: * eval.c, file.c, gc.c, io.c, object.c, ruby.c, ruby.h, struct.c, ext/socket/socket.c: differentiate long and int; use proper printf type specifiers and do casts where appropriate. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 8a91e20ad9..565de7c2b6 100644 --- a/file.c +++ b/file.c @@ -333,7 +333,7 @@ rb_stat_inspect(self) if (i == 2) { /* mode */ char buf[32]; - sprintf(buf, "0%lo", NUM2INT(v)); + sprintf(buf, "0%o", NUM2INT(v)); rb_str_buf_cat2(str, buf); } else if (i == 0 || i == 6) { /* dev/rdev */ -- cgit v1.2.3