Skip to content

Commit

Permalink
Fixing memset in linecount.c, closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bingmann committed Nov 26, 2013
1 parent e626ecd commit c55ca37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/linecount.c
Expand Up @@ -30,7 +30,7 @@ int main()

// allocate and clear linemark
ull_type* linemark = malloc( (max_linemark+1) * sizeof(ull_type) );
memset(linemark, 0, sizeof(linemark));
memset(linemark, 0, (max_linemark+1) * sizeof(ull_type));

ln = 0; /* line start */
while ( (c = getc(stdin)) != EOF )
Expand Down

0 comments on commit c55ca37

Please sign in to comment.