-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getenv : keep Windows happy by using _dupenv_s rather than getenv
On Windows, 'getenv' is a function that may be unsafe, and is not recommended for use; so don't use it. Use the _dupenv_s instead. Requires a little reworking of the function, which I moved to utilities.c so the ifdef parts don't show up in the main functions. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters