mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Add argument to janet_panicf call (2)
This commit is contained in:
parent
be0d4c28e4
commit
52ed68bfeb
@ -137,7 +137,7 @@ static const char *janet_dyncstring(const char *name, const char *dflt) {
|
|||||||
const uint8_t *jstr = janet_unwrap_string(x);
|
const uint8_t *jstr = janet_unwrap_string(x);
|
||||||
const char *cstr = (const char *)jstr;
|
const char *cstr = (const char *)jstr;
|
||||||
if (strlen(cstr) != (size_t) janet_string_length(jstr)) {
|
if (strlen(cstr) != (size_t) janet_string_length(jstr)) {
|
||||||
janet_panicf("string %v contains embedded 0s");
|
janet_panicf("string %v contains embedded 0s", x);
|
||||||
}
|
}
|
||||||
return cstr;
|
return cstr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user