Browse Source

Plan 9 from Bell Labs 2011-03-01

David du Colombier 13 years ago
parent
commit
2c278cb2c6
1 changed files with 1 additions and 1 deletions
  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];
 	char buf[ERRMAX];
 
 
-	sprint(buf, "no free %s", resource);
+	snprint(buf, sizeof buf, "no free %s", resource);
 	iprint("%s\n", buf);
 	iprint("%s\n", buf);
 	error(buf);
 	error(buf);
 }
 }