diff options
Diffstat (limited to 'src/lj_strfmt.h')
-rw-r--r-- | src/lj_strfmt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_strfmt.h b/src/lj_strfmt.h index 339f8e15..b4fbbb94 100644 --- a/src/lj_strfmt.h +++ b/src/lj_strfmt.h | |||
@@ -79,7 +79,8 @@ static LJ_AINLINE void lj_strfmt_init(FormatState *fs, const char *p, MSize len) | |||
79 | { | 79 | { |
80 | fs->p = (const uint8_t *)p; | 80 | fs->p = (const uint8_t *)p; |
81 | fs->e = (const uint8_t *)p + len; | 81 | fs->e = (const uint8_t *)p + len; |
82 | lua_assert(*fs->e == 0); /* Must be NUL-terminated (may have NULs inside). */ | 82 | /* Must be NUL-terminated. May have NULs inside, too. */ |
83 | lj_assertX(*fs->e == 0, "format not NUL-terminated"); | ||
83 | } | 84 | } |
84 | 85 | ||
85 | /* Raw conversions. */ | 86 | /* Raw conversions. */ |