goo/GooString.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8a30d219df71ead323649ff0dfd4a724b5e7bd18
Author: William Bader <[email protected]>
Date:   Sat Feb 21 23:55:10 2015 +0100

    Fix memcpy introduced in ec956ab8552dbe10fac4e649951042bddc424b7d

diff --git a/goo/GooString.cc b/goo/GooString.cc
index 19de735..3f22f36 100644
--- a/goo/GooString.cc
+++ b/goo/GooString.cc
@@ -396,7 +396,7 @@ GooString *GooString::appendfv(const char *fmt, va_list 
argList) {
            argsSize *= 2;
            if (args == argsBuf) {
              args = (GooStringFormatArg *)gmallocn(argsSize, 
sizeof(GooStringFormatArg));
-             memcpy(args, argsBuf, argsLen);
+             memcpy(args, argsBuf, argsLen * sizeof(GooStringFormatArg));
            } else {
              args = (GooStringFormatArg *)greallocn(args, argsSize,
                                                 sizeof(GooStringFormatArg));
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to