Fixed warnings about date formatting in strings

master
Stefan Jahn 2 years ago
parent c6d7cd3310
commit 4830b0fd1f

@ -4,12 +4,8 @@ include Makefile.config
USE_VFW = 1
TARGET = $(APP).exe
CPP = g++
<<<<<<< HEAD
CPPFLAGS = -ggdb -Wall -O0 `pkg-config --cflags gtk+-3.0 gmodule-export-2.0` -Wl,--export-dynamic -DBUILD_WINDOWS=1 -Wdeprecated -D_POSIX_C_SOURCE=200112L -lucrtbase
=======
CPPFLAGS = -ggdb -Wall -O0 `pkg-config --cflags gtk+-3.0 gmodule-export-2.0` -Wl,--export-dynamic -DBUILD_WINDOWS=1 -Wdeprecated -D_POSIX_C_SOURCE=200112L
#CPPFLAGS = -Wall -O3 `pkg-config --cflags gtk+-3.0 gmodule-export-2.0` -Wl,--export-dynamic -DBUILD_WINDOWS=1 -Wdeprecated -D_POSIX_C_SOURCE=200112L
>>>>>>> 03b9395dd2b60a5aa3d3ab81fdc39a20289fcfb1
INCLUDES =
LDFLAGS = -lws2_32 -ljpeg
LIBS = `pkg-config --libs gtk+-3.0 gmodule-export-2.0` -L/usr/lib -mwindows

@ -69,7 +69,7 @@ int convert_debug_open(uint32_t pixelformat, int srcw, int srch) {
//
// check to create file, if not possible try creating the directory and create the file again
tmptr = localtime(&t);
strftime(fname, LEN_FILENAME, "%F-%R", tmptr);
strftime(fname, LEN_FILENAME, "%Y%m%d-%H%M%S", tmptr);
snprintf (fullfname, LEN_FULLFILENAME, "%s/%s.videodump", config.debugpath, fname);
if ((convert_debug_fd = creat (fullfname, 0666)) == -1) {

@ -37,7 +37,7 @@ void debug_tofile(char *fname, int isheader, char *fmt, ...) {
// append time to filename to the start of the filename
struct tm *timetm = localtime(&debug_time);
char timestr[64] = "";
strftime(timestr, 63, "%F-%H%M%S", timetm);
strftime(timestr, 63, "%Y%m%d-%H%M%S", timetm);
fn = "debug-" + (std::string)timestr + "-" + (std::string)fname;
gettimeofday(&tv,NULL);

Loading…
Cancel
Save