1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

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>
This commit is contained in:
Allan McRae 2015-10-19 13:43:26 +10:00
parent 501242a35b
commit 29d4dcf767

View File

@ -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 */