Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed wrong sizeof for a memset() call.
  • Loading branch information
icculus committed Dec 12, 2008
1 parent cc6693e commit 19c6e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -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)
Expand Down

0 comments on commit 19c6e81

Please sign in to comment.