Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2012-04-23 16:30:23 +0400
committerJunio C Hamano <gitster@pobox.com>2012-04-25 01:55:48 +0400
commit7d29afd43cac38a332ef9fc176d11ec38d2569d4 (patch)
treeabce7b52731dc20bcb1455d27a69c5daee16da40 /test-date.c
parent9a0a30aa4b92a69f63275680820b81c7e34629c9 (diff)
i18n: mark relative dates for translation
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-date.c')
-rw-r--r--test-date.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test-date.c b/test-date.c
index 6bcd5b03c0..10afaabbfa 100644
--- a/test-date.c
+++ b/test-date.c
@@ -7,13 +7,14 @@ static const char *usage_msg = "\n"
static void show_dates(char **argv, struct timeval *now)
{
- char buf[128];
+ struct strbuf buf = STRBUF_INIT;
for (; *argv; argv++) {
time_t t = atoi(*argv);
- show_date_relative(t, 0, now, buf, sizeof(buf));
- printf("%s -> %s\n", *argv, buf);
+ show_date_relative(t, 0, now, &buf);
+ printf("%s -> %s\n", *argv, buf.buf);
}
+ strbuf_release(&buf);
}
static void parse_dates(char **argv, struct timeval *now)