Parcourir la source

Plan 9 from Bell Labs 2011-03-01

David du Colombier il y a 13 ans
Parent
commit
2c278cb2c6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
 }