forked from poz/modfetch
nullterm ret in resolve_env_vars
This commit is contained in:
parent
170e69d096
commit
9ac418318a
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ char *resolve_env_vars(const char *str) {
|
|||
ret[ret_offset] = str[i];
|
||||
ret_offset += 1;
|
||||
}
|
||||
ret[ret_offset] = '\0';
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue