From b88d7f31d7ef78fb36145e9e3f6ff81dc014321d Mon Sep 17 00:00:00 2001 From: Nicholas Persley Date: Wed, 27 Nov 2024 17:13:43 -0500 Subject: [PATCH] Remove duplicate weather `snprintf()` --- src/SW_Weather.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/SW_Weather.c b/src/SW_Weather.c index c030621c8..23172ad74 100644 --- a/src/SW_Weather.c +++ b/src/SW_Weather.c @@ -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)) {