Skip to content

Commit

Permalink
refactor identity allocation from [12] -> malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Sep 26, 2023
1 parent ab2b793 commit a097d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mumble/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ bool mumble_fetchPositionalData(float *avatarPos, float *avatarDir, float *avata
*context = context_str;

// identity: player
char player_str[12];
char *player_str = malloc(12);
sprintf(player_str, "%d", player);
*identity = player_str;

Expand Down

0 comments on commit a097d0d

Please sign in to comment.