From 9e8edf8918c9e79386b4b07f7bc6b2528cea98fb Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Nov 2023 00:29:06 -0500 Subject: Replaces BUFSIZ with OMC_BUFSIZ --- src/environment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/environment.c') diff --git a/src/environment.c b/src/environment.c index 3718c47..d2134c4 100644 --- a/src/environment.c +++ b/src/environment.c @@ -70,7 +70,7 @@ void runtime_export(RuntimeEnv *env, char **keys) { NULL, }; - char output[BUFSIZ]; + char output[OMC_BUFSIZ]; char export_command[7]; // export=6 and setenv=6... convenient char *_sh = getenv("SHELL"); char *sh = path_basename(_sh); @@ -289,7 +289,7 @@ char *runtime_expand_var(RuntimeEnv *env, char *input) { return strdup(input); } - expanded = calloc(BUFSIZ, sizeof(char)); + expanded = calloc(OMC_BUFSIZ, sizeof(char)); if (expanded == NULL) { perror("could not allocate runtime_expand_var buffer"); fprintf(SYSERROR); -- cgit