Skip to content

Commit d637340

Browse files
committed
lowcase ARG_BUF_SIZE
1 parent 33da799 commit d637340

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/os/host-args.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ const struct arg_chr arg_chars2[] = {
199199
**
200200
***********************************************************************/
201201
{
202-
int ARG_BUF_SIZE=1024;
202+
int arg_buf_size=1024;
203203

204204
REBCHR *arg;
205205
REBCHR *args = 0; // holds trailing args
@@ -263,17 +263,17 @@ const struct arg_chr arg_chars2[] = {
263263
else {
264264
int len; REBCHR *tmp;
265265
if (!args) {
266-
args = MAKE_STR(ARG_BUF_SIZE);
266+
args = MAKE_STR(arg_buf_size);
267267
args[0] = 0;
268268
}
269-
len = ARG_BUF_SIZE - LEN_STR(args) - 2; // space remaining
269+
len = arg_buf_size - LEN_STR(args) - 2; // space remaining
270270
while (len < 0) {
271271
tmp = args;
272-
args = MAKE_STR(2 * ARG_BUF_SIZE);
273-
memcpy(args, tmp, ARG_BUF_SIZE);
274-
ARG_BUF_SIZE *= 2;
272+
args = MAKE_STR(2 * arg_buf_size);
273+
memcpy(args, tmp, arg_buf_size);
274+
arg_buf_size *= 2;
275275
free(tmp);
276-
len = ARG_BUF_SIZE - LEN_STR(args) - 2;
276+
len = arg_buf_size - LEN_STR(args) - 2;
277277
}
278278
JOIN_STR(args, arg, len);
279279
JOIN_STR(args, TXT(" "), 1);

0 commit comments

Comments
 (0)