From 64dedef37ceb7f365d01a2f4ae34378549284ddb Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Wed, 25 Jan 2023 12:06:08 +0100 Subject: [PATCH] [core] CodeQL: operation requires 22 bytes. --- srtcore/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srtcore/common.h b/srtcore/common.h index 13e43a4b8..2f1546d22 100644 --- a/srtcore/common.h +++ b/srtcore/common.h @@ -1409,7 +1409,7 @@ inline std::string SrtVersionString(int version) int minor = (version/0x100)%0x100; int major = version/0x10000; - char buf[20]; + char buf[22]; sprintf(buf, "%d.%d.%d", major, minor, patch); return buf; }