From 1f244038a19b6405d313a81d520646ab0cb8a580 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 11 Aug 2019 23:44:55 +0200 Subject: Fix format * kern/task.c (task_create_kernel): Fix passing string size. --- kern/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kern/task.c b/kern/task.c index 57ad9849..735b9e59 100644 --- a/kern/task.c +++ b/kern/task.c @@ -202,7 +202,7 @@ task_create_kernel( new_task); else snprintf (new_task->name, sizeof new_task->name, "(%.*s)", - sizeof new_task->name - 3, parent_task->name); + (int) (sizeof new_task->name - 3), parent_task->name); if (new_task_notification != NULL) { task_reference (new_task); -- cgit v1.2.3