Skip to content

Commit

Permalink
fixup sizeof
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <[email protected]>
  • Loading branch information
piedar committed Dec 21, 2018
1 parent 15ee27c commit 3462ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fakenect/fakenect.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ int freenect_init(freenect_context **ctx, freenect_usb_context *usb_ctx)

char *var = getenv("FAKENECT_LOOP");
if (var) {
int len = strlen(var);
char* tmp = malloc((len + 1) * sizeof(char));
const int len = strlen(var);
char* tmp = malloc((len + 1) * sizeof(*tmp));
int i;
for (i = 0; i < len; i++)
tmp[i] = tolower(var[i]);
Expand Down

0 comments on commit 3462ca9

Please sign in to comment.