X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lib-src%2Ffakemail.c;h=a074fa8eb768a65d5c088c6672562acd396e306a;hp=0bf4ca4c58c3a8c49c1c3beb051b041df59dd5b1;hb=0c42ec05e3081f5227055048980ab1876f859447;hpb=762383636a99307282c2d93d26c35c046ec24da1 diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 0bf4ca4..a074fa8 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c @@ -302,7 +302,7 @@ static line_list make_file_preface (void) { char *the_string, *temp; - long idiotic_interface; + time_t idiotic_interface; long prefix_length; long user_length; long date_length; @@ -313,7 +313,8 @@ make_file_preface (void) the_date = ctime (&idiotic_interface); /* the_date has an unwanted newline at the end */ date_length = strlen (the_date) - 1; - the_date[date_length] = '\0'; + if (the_date[date_length] == '\n') + the_date[date_length] = '\0'; #ifdef WIN32_NATIVE temp = "(null)"; #else