Skip to content

Commit

Permalink
Another
Browse files Browse the repository at this point in the history
  • Loading branch information
nawendt committed Apr 3, 2023
1 parent e5af452 commit 8a52132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grib_api_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SEXP gribr_api_version(void) {
minor = (version - major * 10000) / 100;
revision = (version - major * 10000) - (minor * 100);
err = snprintf(string, slen, "%ld.%ld.%ld", major, minor, revision);
if (err) {
if (err >= slen || err < 0) {
error("Problem getting ecCodes version.");
}

Expand Down

0 comments on commit 8a52132

Please sign in to comment.