Browse Source

* changed integer parsing (garbage)

master
Alex 'AdUser' Z 13 years ago
parent
commit
e5a4dc9051
  1. 5
      src/torrent2json.c

5
src/torrent2json.c

@ -38,9 +38,12 @@ get_integer(int chr)
value *= -1;
break;
case 'e' : /* integer end marker */
default : /* or garbled data */
cont = false;
break;
default : /* or garbled data */
fprintf(stderr, "Garbage after integer: %i%c<\n", value, c);
exit(EXIT_FAILURE);
break;
}
}

Loading…
Cancel
Save