[gcalctool] fix memcpy regression
- From: Robert Ancell <rancell src gnome org>
- To: svn-commits-list gnome org
- Subject: [gcalctool] fix memcpy regression
- Date: Tue, 19 May 2009 06:23:41 -0400 (EDT)
commit 180ab6da3db9e489f125eff00203825d2a487b10
Author: Robert Ancell <robert ancell gmail com>
Date: Tue May 19 12:23:33 2009 +0200
fix memcpy regression
---
src/mp-convert.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mp-convert.c b/src/mp-convert.c
index f9c2f37..c54e1ca 100644
--- a/src/mp-convert.c
+++ b/src/mp-convert.c
@@ -44,7 +44,7 @@ mp_set_from_mp(const MPNumber *x, MPNumber *y)
if (x->sign == 0)
y->sign = 0;
else
- memcpy (y, x, MP.t * sizeof(int));
+ memcpy (y, x, (MP.t + 2) * sizeof(int));
}
/* CONVERTS SINGLE-PRECISION NUMBER RX TO MULTIPLE-PRECISION Z.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]