summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-08-11 23:44:55 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-08-11 23:44:55 +0200
commit1f244038a19b6405d313a81d520646ab0cb8a580 (patch)
tree262d391ba299180d3e67f4ec22b41fa3ee3ee3d2
parentbe3a664756c78cce3c9c02d4746da4f79b18fec7 (diff)
Fix format
* kern/task.c (task_create_kernel): Fix passing string size.
-rw-r--r--kern/task.c2
1 files changed, 1 insertions, 1 deletions
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);