[PATCH 4/6] libusbg: Remove fixed-size buffers from usbg_function.

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 | 91 +

[PATCH 4/6] libusbg: Remove fixed-size buffers from usbg_function.

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 | 91 +