mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Fix one more place which assumed that key was NUL terminated.
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
New field char_set_length.
|
||||
(List_Node constructor): Accept key and rest, not the entire line.
|
||||
* src/list-node.cc (List_Node constructor): Accept key and rest, not
|
||||
the entire line. Don't NUL terminate key and char_set. Initialize
|
||||
char_set_length field.
|
||||
the entire line. Don't NUL terminate key and char_set. Specify
|
||||
explicit length of key. Initialize char_set_length field.
|
||||
* src/key-list.cc: Include <ctype.h>.
|
||||
(parse_line): New function.
|
||||
(Key_List::read_keys): Call parse_line instead of new List_Node.
|
||||
|
||||
Reference in New Issue
Block a user