Dear Matt, due to recent discussion at linux-usb mailing list [1] about usage of sprintf in libusbg I took up the task to fix this issue. I have removed fixed size tabs in library structures reserved for name and path and replaced the with dynamically alocated strings. I have also replaced sprintf usage with snprintf and change USBG_MAX_PATH_LENGTH default value tp PATH_MAX from limits.h what will help being consistent with rest of libraries. I didn't remove USBG_MAX_PATH_LENGTH macro to make this size easily modifiable in library. This series of patch depends on one of our previous series [2]. Version two and next of other series [3] which has been sent to the list will be rebased and placed on the top of this series. Footnotes: 1 - http://article.gmane.org/gmane.linux.usb.general/104923 2 - http://article.gmane.org/gmane.linux.usb.general/104885 3 - http://article.gmane.org/gmane.linux.usb.general/104910 -- BR's Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics --- Changes since v1: - use sizeof(target) instead of macro in snprintf() - use USBG_MAX_PATH_LENGTH macro instead of PATH_MAX - initialize USBG_MAX_PATH_LENGTH to PATH_MAX Krzysztof Opasiak (7): libusbg: Fix wrong target size. libusbg: Remove fixed-size buffer from usbg_state. libusbg: Remove fixed-size buffers from usbg_gadget. libusbg: Remove fixed-size buffers from usbg_config. libusbg: Remove fixed-size buffers from usbg_function. libusbg: Remove fixed-size buffers from usbg_binding. libusbg: Replace sprintf with snprintf. configure.ac | 1 + include/usbg/usbg.h | 4 +- src/usbg.c | 610 +++++++++++++++++++++++++++++++++++---------------- 3 files changed, 419 insertions(+), 196 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html