Skip to content
New issue

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? Sign in to your account

Replace sprintf with snprintf. #1727

Merged
merged 1 commit into from
Jun 27, 2021
Merged

Conversation

kevinbackhouse
Copy link
Collaborator

It turns out (see #1720) that there are still a few uses of sprintf in the codebase. According to the comments, that's because the code was written before the switch to C++11. We're using C++11 now, so these can all be replaced with snprintf.

I originally submitted this as #1721, but it causes build errors on 0.27-maintenance.

@codecov
Copy link

codecov bot commented Jun 21, 2021

Codecov Report

Merging #1727 (aa33e46) into main (c069e36) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1727   +/-   ##
=======================================
  Coverage   66.85%   66.85%           
=======================================
  Files         151      151           
  Lines       20728    20728           
=======================================
  Hits        13857    13857           
  Misses       6871     6871           
Impacted Files Coverage Δ
samples/geotag.cpp 79.08% <100.00%> (ø)
src/iptc.cpp 75.31% <100.00%> (ø)
src/jpgimage.cpp 77.66% <100.00%> (ø)
src/version.cpp 91.71% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c069e36...aa33e46. Read the comment docs.

Copy link
Member

@hassec hassec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @kevinbackhouse 👍

@hassec hassec merged commit b16cd52 into Exiv2:main Jun 27, 2021
@kevinbackhouse kevinbackhouse added this to the v1.00 milestone Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants