Explorar o código

Plan 9 from Bell Labs 2011-03-01

David du Colombier %!s(int64=13) %!d(string=hai) anos
pai
achega
2c278cb2c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sys/src/9/port/proc.c

+ 1 - 1
sys/src/9/port/proc.c

@@ -1456,7 +1456,7 @@ exhausted(char *resource)
 {
 	char buf[ERRMAX];
 
-	sprint(buf, "no free %s", resource);
+	snprint(buf, sizeof buf, "no free %s", resource);
 	iprint("%s\n", buf);
 	error(buf);
 }