From 14ccb8cd026f2167d69e31e8ee337edb70c40761 Mon Sep 17 00:00:00 2001 From: Charlie Gordon Date: Sun, 15 Mar 2026 13:23:04 +0100 Subject: [PATCH] Common: use `strlcpy instead of obsoleted strncpy --- common/logger.c2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/logger.c2 b/common/logger.c2 index bb3d1e1..b58f0bc 100644 --- a/common/logger.c2 +++ b/common/logger.c2 @@ -73,7 +73,7 @@ public type Log struct { public fn void Log.init(Log* log, Base* base, const char* name_) { log.base = base; log.level = base.defaultLevel; - strncpy(log.name, name_, 16); + strlcpy(log.name, name_, 16); log.name[15] = 0; }