From 0d7cbd3e93e8868922b92d5ada9a41991bbcfe8b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 27 Dec 2013 22:00:43 +0100 Subject: [PATCH] Write -date stamp always with 10 characters To make it easier to replace date stamps on uninstall, we give them fixed length. --- args.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/args.h b/args.h index 3a1347a..0c403de 100644 --- a/args.h +++ b/args.h @@ -102,8 +102,8 @@ typedef struct { IcsTextMenuEntry icsTextMenuEntry[ICS_TEXT_MENU_SIZE]; int junk; -int saveDate; -int dateStamp; +unsigned int saveDate; +unsigned int dateStamp; Boolean singleList; Boolean autoClose; char *homeDir; @@ -850,7 +850,7 @@ AppendToSettingsFile (char *line) if(f = fopen(SETTINGS_FILE, "a")) { TimeMark now; GetTimeMark(&now); - fprintf(f, "-date %ld\n%s\n", now.sec, line); + fprintf(f, "-date %10lu\n%s\n", now.sec, line); fclose(f); } } -- 1.7.0.4