jscript: Don't copy more than needed in parse_identifier.

This commit is contained in:
Jacek Caban 2011-08-05 17:23:25 +02:00 committed by Alexandre Julliard
parent 8c00ee0bef
commit 39f4583ef9
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ static int parse_identifier(parser_ctx_t *ctx, const WCHAR **ret)
len = ctx->ptr-ptr;
*ret = wstr = parser_alloc(ctx, (len+1)*sizeof(WCHAR));
memcpy(wstr, ptr, (len+1)*sizeof(WCHAR));
memcpy(wstr, ptr, len*sizeof(WCHAR));
wstr[len] = 0;
/* FIXME: unescape */