Fix buffer overflow in open_net_route

`sscanf()` reads an unlimited amount of data into buffer.  Limit it to the buffer size.