-Codechange: data-dir access with snprintf instead of strncpy & strncat