Fixed wrong sizeof for a memset() call.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Dec 2008 04:47:21 -0500
changeset 510 f4433db86f6e
parent 509 88c18d64e95b
child 511 67d7efa9206b
Fixed wrong sizeof for a memset() call.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Fri Dec 12 04:22:33 2008 -0500
+++ b/mojoshader_assembler.c	Fri Dec 12 04:47:21 2008 -0500
@@ -612,7 +612,7 @@
 
 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)