Skip to content

Commit

Permalink
Typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Aug 18, 2024
1 parent 7ee4b5a commit 25b0fcf
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/core/jstick.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,15 @@ void js_guid_create(_js_device *jdev) {
(*(word + 6)) = jdev->usb.version;
(*(word + 7)) = jdev->usb.version - 400;
#if defined (__linux__)
BYTE *byte = (BYTE *)&word[2];
int idx = 0;

for (const char *s = jdev->uniq; *s; ++s) {
byte[idx++] ^= *s;
if (idx > 11) {
idx = 0;
{
BYTE *byte = (BYTE *)&word[2];
int idx = 0;

for (const char *s = jdev->uniq; (*s); ++s) {
byte[idx++] ^= (*s);
if (idx > 11) {
idx = 0;
}
}
}
#endif
Expand Down

0 comments on commit 25b0fcf

Please sign in to comment.