diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-03-04 22:46:54 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-03-04 22:46:54 +0000 |
| commit | f0b507a096d65291aedcc9f98cde1d7b8aabc024 (patch) | |
| tree | 93b91137e30825ba7fbb690c29d700fba88394ad /APRSCode.c | |
| parent | 9d0d20064dd879c2967a86ef0b6751c563d80196 (diff) | |
| parent | b128f2a43a16acef50de045ae6526772c04c395e (diff) | |
Update upstream source from tag 'upstream/6.0.24.66+repack'
Update to upstream version '6.0.24.66+repack'
with Debian dir 0a1e01b2c4f9c8b665a31c0f8523e8fa0e88b6be
Diffstat (limited to 'APRSCode.c')
| -rw-r--r-- | APRSCode.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -553,6 +553,8 @@ int APRSWriteLog(char * msg) UCHAR Value[MAX_PATH];
time_t T;
struct tm * tm;
+ int n;
+
if (LogAPRSIS == 0)
return 0;
@@ -574,8 +576,9 @@ int APRSWriteLog(char * msg) strcat(Value, "logs/APRS_");
}
- sprintf(Value, "%s%02d%02d%02d.log", Value,
- tm->tm_year - 100, tm->tm_mon+1, tm->tm_mday);
+ n = strlen(Value);
+
+ sprintf(&Value[n], "%02d%02d%02d.log", tm->tm_year - 100, tm->tm_mon+1, tm->tm_mday);
if ((file = fopen(Value, "ab")) == NULL)
return FALSE;
|
