-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Fix bug in argv_to_string_alloc(), which did not increase buffer size to account for number of separators. 2. Improve coding a. Initialize buffer size to one to account for terminator, which avoids the need to later increment by one. b. Call concat_argv() directly, instead of calling argv_to_string(), which is a wrapper. 3. Add similar function argv_to_string_alloc_prefix(), which preloads string buffer with a prefix string.
- Loading branch information
1 parent
6afbd89
commit 557b020
Showing
2 changed files
with
33 additions
and
5 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