diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2001-06-07 05:26:57 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2001-06-07 05:26:57 +0000 |
commit | 4513fdec5e9205c4cc4168e3e449882d0e67f660 (patch) | |
tree | d962b81327d64cab79237e2e2e4cbba160b056f6 /libexec/talkd | |
parent | 889b293a21533708a02b09cf18ba4850943afbc6 (diff) | |
download | src-4513fdec5e9205c4cc4168e3e449882d0e67f660.tar.gz src-4513fdec5e9205c4cc4168e3e449882d0e67f660.zip |
Notes
Diffstat (limited to 'libexec/talkd')
-rw-r--r-- | libexec/talkd/announce.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c index dccd8d887b32..aec851f1c3e3 100644 --- a/libexec/talkd/announce.c +++ b/libexec/talkd/announce.c @@ -125,8 +125,10 @@ print_mesg(tty, tf, request, remote_machine) max_size = max(max_size, sizes[i]); i++; (void)snprintf(line_buf[i], N_CHARS, - "Message from Talk_Daemon@%s at %d:%02d ...", - hostname, localclock->tm_hour , localclock->tm_min ); + "Message from Talk_Daemon@%s at %d:%02d on %d/%.2d/%.2d ...", + hostname, localclock->tm_hour , localclock->tm_min, + localclock->tm_year + 1900, localclock->tm_mon, + localclock->tm_mday); sizes[i] = strlen(line_buf[i]); max_size = max(max_size, sizes[i]); i++; |