Fix Some DateName Issues for dates in Aero;

This commit is contained in:
lwvmobile
2023-08-07 03:42:11 -04:00
parent 0829cdbdb0
commit 9b3a2d96e3
4 changed files with 22 additions and 6 deletions

View File

@@ -34,7 +34,11 @@ char * getTimeF(void) //get pretty hh:mm:ss timestamp
}
char * getDateF(void) {
char datename[80]; //32-bit needs this to be 80
#ifdef AERO_BUILD
char datename[80];
#else
char datename[99];
#endif
char * curr2;
struct tm * to;
time_t t;

View File

@@ -67,7 +67,11 @@ char * getTime(void) //get pretty hh:mm:ss timestamp
}
char * getDate(void) {
char datename[32];
#ifdef AERO_BUILD
char datename[80];
#else
char datename[99];
#endif
char * curr2;
struct tm * to;
time_t t;

View File

@@ -248,7 +248,11 @@ void beeper (dsd_opts * opts, dsd_state * state, int type)
#endif
char * getDateN(void) {
char datename[80]; //bug in 32-bit Ubuntu when using date in filename, date is garbage text
#ifdef AERO_BUILD
char datename[80];
#else
char datename[99];
#endif
char * curr2;
struct tm * to;
time_t t;
@@ -274,9 +278,9 @@ char * getTimeN(void) //get pretty hh:mm:ss timestamp
return curr;
}
//this version is broken now in Cygwin with the 80 value, reverted back
char * getDateC(time_t t) {
char datename[99]; //Ubuntu 32-bit, use 80; everything else, use 99
char datename[99];
char * curr2;
struct tm * to;

View File

@@ -19,7 +19,11 @@
#include "dsd.h"
char * getDateE(void) {
char datename[99]; //might honestly just need a much smaller size, and not a larger one
#ifdef AERO_BUILD
char datename[80];
#else
char datename[99];
#endif
char * curr2;
struct tm * to;
time_t t;