From 29d4dcf767b7325ac7e9bbaa4c0b45e3e3ee2c73 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 19 Oct 2015 13:43:26 +1000 Subject: [PATCH] Pluralize malloc failure string Not particularly useful in English (will always be plural), but useful in languages that have multiple plural forms. Signed-off-by: Allan McRae --- src/pacman/conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 6a2b2067..f02e3612 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -95,7 +95,9 @@ config_t *config_new(void) config_t *newconfig = calloc(1, sizeof(config_t)); if(!newconfig) { pm_printf(ALPM_LOG_ERROR, - _("malloc failure: could not allocate %zd bytes\n"), sizeof(config_t)); + _n("malloc failure: could not allocate %zd byte\n", + "malloc failure: could not allocate %zd bytes\n", sizeof(config_t)), + sizeof(config_t)); return NULL; } /* defaults which may get overridden later */