fix buffer over-running bug

This commit is contained in:
anon
2025-01-25 11:21:57 +01:00
parent bf9b4d0f3b
commit 2ee2c34bff

View File

@ -164,7 +164,10 @@ char * next_field(const char * s) {
&& *s != '\0') {
++s;
}
return (char*)(++s);
if (*s != '\0') {
++s;
}
return (char*)s;
}
int execute_directive_file(FILE * f) {