mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 01:07:24 -05:00
Fix Some DateName Issues for dates in Aero;
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -232,7 +232,11 @@ void beeper (dsd_opts * opts, dsd_state * state, int lr)
|
||||
}
|
||||
|
||||
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;
|
||||
@@ -258,9 +262,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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user