1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00

add break condition to xpubaddrgen

This commit is contained in:
Pavol Rusnak 2015-01-11 02:46:45 +01:00
parent 9fea8f8ab3
commit 2880a2e3db

View File

@ -29,7 +29,7 @@ int main(void)
uint32_t jobid, change, from, to;
int r;
for (;;) {
fgets(line, sizeof(line), stdin);
if (!fgets(line, sizeof(line), stdin)) break;
r = sscanf(line, "%u %s %u %u %u\n", &jobid, xpub, &change, &from, &to);
if (r < 1) {
printf("error\n");