Previously, sync_track_path could either overflow it's 'temp' buffer by one byte, or (even worse) end up not zero-terminating it. Correct the code by explicitly zero-terminating the result of strncpy, and reducing the lenght-parameter to strncat.