Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP server: Fix the uuid length
  • Loading branch information
perexg committed Aug 3, 2015
1 parent d9cf931 commit af270b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/satip/server.c
Expand Up @@ -660,11 +660,11 @@ void satip_server_register(void)
tvherror("satips", "Unable to create UUID");
return;
}
bin2hex(uu + 0, 9, u.bin, 4); uu[ 8] = '-';
bin2hex(uu + 9, 5, u.bin + 4, 2); uu[13] = '-';
bin2hex(uu + 14, 5, u.bin + 6, 2); uu[18] = '-';
bin2hex(uu + 19, 5, u.bin + 8, 2); uu[23] = '-';
bin2hex(uu + 24, 9, u.bin + 10, 6); uu[36] = 0;
bin2hex(uu + 0, 9, u.bin, 4); uu[ 8] = '-';
bin2hex(uu + 9, 5, u.bin + 4, 2); uu[13] = '-';
bin2hex(uu + 14, 5, u.bin + 6, 2); uu[18] = '-';
bin2hex(uu + 19, 5, u.bin + 8, 2); uu[23] = '-';
bin2hex(uu + 24, 13, u.bin + 10, 6); uu[36] = 0;
if (config_set_str("satip_uuid", uu))
save = 1;
satip_server_uuid = uu;
Expand Down

0 comments on commit af270b6

Please sign in to comment.