From 5babf578fdc40238afda8d5e20efd44b0a85dfec Mon Sep 17 00:00:00 2001 From: "MSDN.WhiteKnight" <35516665+MSDN-WhiteKnight@users.noreply.github.com> Date: Sun, 19 Feb 2023 16:53:27 +0500 Subject: [PATCH] Fix build warning Replace sscanf with sscanf_s --- SmallMediaPlayer/tags.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmallMediaPlayer/tags.cpp b/SmallMediaPlayer/tags.cpp index fca9a87..451fc6b 100644 --- a/SmallMediaPlayer/tags.cpp +++ b/SmallMediaPlayer/tags.cpp @@ -695,7 +695,7 @@ while(1){//read frames i++; StringCchCopyNA(buf,1024,&(pOutputTags[i]),packer.dword-1); out->length=0; - sscanf(buf,"%u",&(out->length)); + sscanf_s(buf,"%u",&(out->length)); i+=packer.dword-1;continue; } i+=packer.dword;continue;