|
@@ -96,7 +96,7 @@ static enum event_type read_token(char **tok)
|
|
|
(strcmp(token, "=") == 0 || strcmp(token, "!") == 0) &&
|
|
(strcmp(token, "=") == 0 || strcmp(token, "!") == 0) &&
|
|
|
pevent_peek_char() == '~') {
|
|
pevent_peek_char() == '~') {
|
|
|
/* append it */
|
|
/* append it */
|
|
|
- *tok = malloc(3);
|
|
|
|
|
|
|
+ *tok = malloc_or_die(3);
|
|
|
sprintf(*tok, "%c%c", *token, '~');
|
|
sprintf(*tok, "%c%c", *token, '~');
|
|
|
free_token(token);
|
|
free_token(token);
|
|
|
/* Now remove the '~' from the buffer */
|
|
/* Now remove the '~' from the buffer */
|