From 7fc5fe6dd58cace814972d09db3785e7007e12fe Mon Sep 17 00:00:00 2001 From: root Date: Sun, 18 Aug 2019 17:43:54 +0200 Subject: [PATCH] chg: unifed the dateformat --- tools/fpga_compress/fpga_compress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/fpga_compress/fpga_compress.c b/tools/fpga_compress/fpga_compress.c index 7777b6d51..bac6a1670 100644 --- a/tools/fpga_compress/fpga_compress.c +++ b/tools/fpga_compress/fpga_compress.c @@ -337,6 +337,8 @@ static int FpgaGatherVersion(FILE *infile, char *infile_name, char *dst, int len for (uint16_t i = 0; i < fpga_info_len; i++) { char c = (char)fgetc(infile); if (i < sizeof(tempstr)) { + if ( c == '/' ) c = '-'; + if ( c == ' ' ) c = '0'; tempstr[i] = c; } }