summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-10-19 13:43:26 +1000
committerAllan McRae <allan@archlinux.org>2015-10-19 13:48:56 +1000
commit29d4dcf767b7325ac7e9bbaa4c0b45e3e3ee2c73 (patch)
tree7a87867dc7ca88fcddbb484d2c70373b4ad1f0dc /src
parent501242a35bce01f19312b774c6364b4edaaec619 (diff)
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 <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/conf.c4
1 files changed, 3 insertions, 1 deletions
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 */