diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/git-testament.pl | 1 | ||||
-rw-r--r-- | utils/log.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/utils/git-testament.pl b/utils/git-testament.pl index 5d1586bed..dc6301b50 100644 --- a/utils/git-testament.pl +++ b/utils/git-testament.pl @@ -103,6 +103,7 @@ my %userinfo; # The information about the current user my $gecos = $pwent[6]; $gecos =~ s/,.+//g; $gecos =~ s/"/'/g; + $gecos =~ s/\\/\\\\/g; $userinfo{GECOS} = $gecos; } diff --git a/utils/log.c b/utils/log.c index b20b32380..9f2e172bc 100644 --- a/utils/log.c +++ b/utils/log.c @@ -101,7 +101,7 @@ const char *nslog_gettime(void) timeval_subtract(&tv, &now_tv, &start_tv); - snprintf(buff, sizeof(buff),"(%ld.%ld)", + snprintf(buff, sizeof(buff),"(%ld.%06ld)", (long)tv.tv_sec, (long)tv.tv_usec); return buff; |