Browse Source

misplaced & in times() made it fail to work, and clobber the stack

Rich Felker 14 năm trước cách đây
mục cha
commit
eff62b8a96
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/time/times.c

+ 1 - 1
src/time/times.c

@@ -3,5 +3,5 @@
 
 clock_t times(struct tms *tms)
 {
-	return syscall1(__NR_times, (long)&tms);
+	return syscall1(__NR_times, (long)tms);
 }