summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-01-25 12:14:23 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-01-25 12:14:23 +0200
commit0d7bf59ad10cffb3d99fb309fd23083721ade106 (patch)
treecb344bd876d9c7970ea7eca7ed9fd39887d9f814 /lib/rpmps.c
parentee655d91a2dfd5e8863dca582077d1bd65cb240b (diff)
downloadlibrpm-tizen-0d7bf59ad10cffb3d99fb309fd23083721ade106.tar.gz
librpm-tizen-0d7bf59ad10cffb3d99fb309fd23083721ade106.tar.bz2
librpm-tizen-0d7bf59ad10cffb3d99fb309fd23083721ade106.zip
Bandaid patch for truncated error message in russian (mdvbz#31680)
Just up the stupid static reservation "high enuff" for now. asprintf() would be nice here but it's not at all portable, revisit later.
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index 68f740542..9390afa99 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -301,7 +301,7 @@ char * rpmProblemString(const rpmProblem prob)
const char * pkgNEVR = (prob->pkgNEVR ? prob->pkgNEVR : "?pkgNEVR?");
const char * altNEVR = (prob->altNEVR ? prob->altNEVR : "? ?altNEVR?");
const char * str1 = (prob->str1 ? prob->str1 : N_("different"));
- size_t nb = strlen(pkgNEVR) + strlen(str1) + strlen(altNEVR) + 100;
+ size_t nb = strlen(pkgNEVR) + strlen(str1) + strlen(altNEVR) + 256;
char * buf = xmalloc(nb+1);
int rc;