Skip to content

Remove call to sprintf() to avoid warnings#146

Merged
jonjoliver merged 1 commit intotrendmicro:masterfrom
merces:master
Oct 8, 2024
Merged

Remove call to sprintf() to avoid warnings#146
jonjoliver merged 1 commit intotrendmicro:masterfrom
merces:master

Conversation

@merces
Copy link
Copy Markdown
Contributor

@merces merces commented Sep 18, 2024

@jonjoliver can you review it please?

Although sprintf() is considered insecure, in this case it's harmless as the string copied to nullstr is fixed. However, because this function is deprecated, the compiler emits a warning. This patch removes the function call as it's not really needed in this case.

@merces merces requested a review from jonjoliver September 18, 2024 06:56
@merces merces added this to the 4.12.0 milestone Sep 18, 2024
@jonjoliver jonjoliver mentioned this pull request Sep 19, 2024
@jonjoliver jonjoliver merged commit 8667ef3 into trendmicro:master Oct 8, 2024
jonjoliver pushed a commit to jonjoliver/tlsh that referenced this pull request Oct 8, 2024
<PRE>
08/10/2024
        Merge pull request trendmicro#146 - Remove call to sprintf() to avoid warnings
        Merge pull request trendmicro#141 - py_ext: use PyVarObject_HEAD instead of PyObject_HEAD_INIT
        Merge pull request trendmicro#138 - Build: Define default options only on "default"
        Merge pull request trendmicro#136 - Bug Fix+Portability: Improve portability by integral division
</PRE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants