mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 17:27:33 +02:00
Reduced buffer size
This commit is contained in:
parent
6f73d0d7fc
commit
537052b87e
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@
|
||||||
#define Cyc_check_num_args(fnc_name, num_args, args) { \
|
#define Cyc_check_num_args(fnc_name, num_args, args) { \
|
||||||
integer_type l = Cyc_length(args); \
|
integer_type l = Cyc_length(args); \
|
||||||
if (num_args > l.value) { \
|
if (num_args > l.value) { \
|
||||||
char buf[256]; \
|
char buf[128]; \
|
||||||
snprintf(buf, 255, "Expected %d arguments but received %d.", num_args, l.value); \
|
snprintf(buf, 127, "Expected %d arguments but received %d.", num_args, l.value); \
|
||||||
Cyc_rt_raise_msg(buf); \
|
Cyc_rt_raise_msg(buf); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue