diff options
Diffstat (limited to 'ext/socket/option.c')
-rw-r--r-- | ext/socket/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index 5563a7d8bb..7d62d73ff5 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -305,7 +305,7 @@ inspect_socktype(int level, int optname, VALUE data, VALUE ret) static int inspect_timeval(int level, int optname, VALUE data, VALUE ret) { - if (RSTRING_LEN(data) == sizeof(struct linger)) { + if (RSTRING_LEN(data) == sizeof(struct timeval)) { struct timeval s; memcpy((char*)&s, RSTRING_PTR(data), sizeof(s)); rb_str_catf(ret, " %ld.%06ldsec", (long)s.tv_sec, (long)s.tv_usec); |