Skip to content

Commit

Permalink
fix serial name size mismatch with stlink_open_usb() (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogFluff authored and xor-gate committed Mar 6, 2018
1 parent 1f18a18 commit b69c1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ static size_t stlink_probe_usb_devs(libusb_device **devs, stlink_t **sldevs[]) {
continue;

struct libusb_device_handle* handle;
char serial[13];
char serial[16];
memset(serial, 0, sizeof(serial));

ret = libusb_open(dev, &handle);
Expand Down

0 comments on commit b69c1d5

Please sign in to comment.