From 19c6e81ff029c3b41d63d3cfa97c362616ad88e9 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 12 Dec 2008 04:47:21 -0500 Subject: [PATCH] Fixed wrong sizeof for a memset() call. --- mojoshader_assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader_assembler.c b/mojoshader_assembler.c index d6ba00db..3aa42268 100644 --- a/mojoshader_assembler.c +++ b/mojoshader_assembler.c @@ -612,7 +612,7 @@ static int set_result_shift(Context *ctx, DestArgInfo *info, const int val) static int parse_destination_token(Context *ctx, DestArgInfo *info) { - memset(info, '\0', sizeof (info)); + memset(info, '\0', sizeof (DestArgInfo)); // See if there are destination modifiers on the instruction itself... while (1)