goo/GooString.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));