[PATCH 5/6] libusbg: Remove fixed-size buffers from usbg_binding.

2014-03-13 Thread Krzysztof Opasiak
Path and name length should not be placed in constant size buffer but in allocated memory. Use also PATH_MAX macro from limits.h instead of internal library macro. Handle overflows of snprintf in related funcitons. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 177 +

[PATCH 5/6] libusbg: Remove fixed-size buffers from usbg_binding.

2014-03-13 Thread Krzysztof Opasiak
Path and name length should not be placed in constant size buffer but in allocated memory. Use also PATH_MAX macro from limits.h instead of internal library macro. Handle overflows of snprintf in related funcitons. Signed-off-by: Krzysztof Opasiak --- src/usbg.c | 177 +