瀏覽代碼

Plan 9 from Bell Labs 2011-03-01

David du Colombier 13 年之前
父節點
當前提交
2c278cb2c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 }