summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authornicm <nicm>2015-02-06 23:28:52 +0000
committernicm <nicm>2015-02-06 23:28:52 +0000
commit52756fb3c5376e8f59607de328f92f7f681d3972 (patch)
tree42cab4fbe64665f7025920dbd10f54588923c30f /status.c
parent313f2263f8bb3336893527f65789f820ba7eaf0f (diff)
Use the same time for both calls to format_expand_time.
Diffstat (limited to 'status.c')
-rw-r--r--status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/status.c b/status.c
index e7714a00..5f8895fb 100644
--- a/status.c
+++ b/status.c
@@ -758,9 +758,9 @@ status_prompt_set(struct client *c, const char *msg, const char *input,
status_message_clear(c);
status_prompt_clear(c);
- c->prompt_string = format_expand_time(ft, msg, time(NULL));
+ c->prompt_string = format_expand_time(ft, msg, t);
- c->prompt_buffer = format_expand_time(ft, input, time(NULL));
+ c->prompt_buffer = format_expand_time(ft, input, t);
c->prompt_index = strlen(c->prompt_buffer);
c->prompt_callbackfn = callbackfn;
@@ -817,10 +817,10 @@ status_prompt_update(struct client *c, const char *msg, const char *input)
t = time(NULL);
free(c->prompt_string);
- c->prompt_string = format_expand_time(ft, msg, time(NULL));
+ c->prompt_string = format_expand_time(ft, msg, t);
free(c->prompt_buffer);
- c->prompt_buffer = format_expand_time(ft, input, time(NULL));
+ c->prompt_buffer = format_expand_time(ft, input, t);
c->prompt_index = strlen(c->prompt_buffer);
c->prompt_hindex = 0;