Explorar o código

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

Rich Felker %!s(int64=14) %!d(string=hai) anos
pai
achega
eff62b8a96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 }