Skip to content

Commit

Permalink
Remove duplicate weather snprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
N1ckP3rsl3y committed Nov 27, 2024
1 parent 912bde2 commit b88d7f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/SW_Weather.c
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,6 @@ void read_weather_hist(
char fname[MAX_FILENAMESIZE];
char inbuf[MAX_FILENAMESIZE];

snprintf(fname, MAX_FILENAMESIZE, "%s.%4d", txtWeatherPrefix, year);
resSNP = snprintf(fname, sizeof fname, "%s.%4d", txtWeatherPrefix, year);

if (resSNP < 0 || (unsigned) resSNP >= (sizeof fname)) {
Expand Down

0 comments on commit b88d7f3

Please sign in to comment.