Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
I just copied and pasted the code to an Ubuntu VM using WSL, and when I compile it I get this warning
htmltidy.c: In function ‘dumpNode’:
htmltidy.c:56:9: warning: format not a string literal and no format arguments [-Wformat-security]
56 | printf(tidyAttrName(attr));
and when I run the binary I get:
example: /build/tidy-html5-_lVTuO/tidy-html5-5.6.0/src/config.c:485: prvTidySetOptionInt: Assertion `option_defs[ optId ].type == TidyInteger' failed.
Aborted (core dumped)
(same happens when I comment out the printf that causes the warning)
The text was updated successfully, but these errors were encountered:
examples/htmltidy: correct wrong printf() use
... and update the includes to match how current htmltidy wants them
Reported-by: Stathis Kapnidis
Successfully merging a pull request may close this issue.