2009-06-22 Marek Safar <marek.safar@gmail.com>
[mono.git] / support / sys-time.c
index 376346a45743e6116f7ffae0ac68657d73b5b649..fdb8b63cd6ab5a6b61d8497fe0eb8acbc9866d98 100644 (file)
@@ -90,10 +90,10 @@ static inline struct timeval*
 copy_utimes (struct timeval* to, struct Mono_Posix_Timeval *from)
 {
        if (from) {
-               to[0].tv_sec  = from->tv_sec;
-               to[0].tv_usec = from->tv_usec;
-               to[1].tv_sec  = from->tv_sec;
-               to[1].tv_usec = from->tv_usec;
+               to[0].tv_sec  = from[0].tv_sec;
+               to[0].tv_usec = from[0].tv_usec;
+               to[1].tv_sec  = from[1].tv_sec;
+               to[1].tv_usec = from[1].tv_usec;
                return to;
        }