fix: strcat can not be used on uninitialised strings in non-musl environments.
parent
d11a9d3638
commit
bbdc2fbd6e
|
@ -141,7 +141,7 @@ char *package_to_description(Pkg *pkg) {
|
|||
// assuming .pkg.tar.zst; other formats are valid, this should account for that
|
||||
snprintf(aux, SMALL_BUFF_SIZE, "%%FILENAME%%\n%s-%s-%s.pkg.tar.zst", pkg_info->name, pkg_info->version,
|
||||
pkg_info->arch);
|
||||
strcat(description, aux);
|
||||
strcpy(description, aux);
|
||||
|
||||
ADD_STRING("\n\n%%NAME%%\n%s", name);
|
||||
ADD_STRING("\n\n%%BASE%%\n%s", base);
|
||||
|
|
Loading…
Reference in New Issue