Open
Description
src/tmbstr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tmbstr.c b/src/tmbstr.c
index e352698..447c6dd 100644
--- a/src/tmbstr.c
+++ b/src/tmbstr.c
@@ -255,7 +255,7 @@ void TY_(strrep)(tmbstr buffer, ctmbstr str, ctmbstr rep)
if(p)
{
char buf[1024];
- memset(buf,'\0',strlen(buf));
+ memset(buf,'\0',sizeof(buf));
if(buffer == p)
{
if use vc to build the solution with debug config, and call tidyRunDiagnostics with the html in the attachment zip file, will trigger the problem.
Metadata
Metadata
Assignees
Labels
No labels