Skip to content

Commit fa24f76

Browse files
committed
use default buffer size
1 parent fe8249a commit fa24f76

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## CHANGELOG
22

3+
### v0.1.2 (2020-05-31)
4+
5+
* Stability Improvements
6+
* Upgrade to string_buffer 0.1.2
7+
38
### v0.1.1 (2020-05-31)
49

510
* Performance Improvements

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ macro(add_external_lib)
2121
COMMAND git clone git@github.com:sagiegurari/c_string_buffer.git
2222
)
2323
execute_process(
24-
COMMAND git checkout tags/v0.1.1
24+
COMMAND git checkout tags/v0.1.2
2525
WORKING_DIRECTORY c_string_buffer
2626
)
2727
string(TOUPPER ${ARGV0} X_EXTERNAL_LIB_NAME)

src/scriptexec.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ struct ScriptExecResult scriptexec_run_with_options(const char *script, struct S
4040
return(result);
4141
}
4242

43-
const size_t script_length = strlen(script);
44-
struct StringBuffer *buffer = string_buffer_new_with_options(script_length + 4096, true);
43+
struct StringBuffer *buffer = string_buffer_new();
4544

4645
// move to cwd
4746
char *cwd = getcwd(NULL, 0);

0 commit comments

Comments
 (0)