Skip to content

Commit

Permalink
trival
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Sep 14, 2017
1 parent 27135e5 commit b9b14f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int rs_decode(void *code,char *data[],int size)
return -1;
for(int i=0;i<n;i++)
{
if(k<count)
if(i<count)
data[i]=data[index[i]];
else
data[i]=0;
Expand Down

0 comments on commit b9b14f9

Please sign in to comment.