Fix the licensecheck to use snprintf() function instead of sprintf()