1
0
Fork 0
forked from poz/modfetch

nullterm ret in resolve_env_vars

This commit is contained in:
jacekpoz 2024-02-09 15:34:15 +01:00
parent 170e69d096
commit 9ac418318a
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -110,6 +110,7 @@ char *resolve_env_vars(const char *str) {
ret[ret_offset] = str[i]; ret[ret_offset] = str[i];
ret_offset += 1; ret_offset += 1;
} }
ret[ret_offset] = '\0';
return ret; return ret;
} }