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 replaced USBG_MAX_PATH_LENGTH with PATH_MAX macro from limits.h what will help being consistent with rest of libraries. This series of patch depends on one of our previous series [2]. Version two 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 --- Krzysztof Opasiak (6): 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 | 2 +- src/usbg.c | 631 ++++++++++++++++++++++++++++++++++----------------- 3 files changed, 425 insertions(+), 209 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