[PATCH] fix a C bug in hyperdoc

10 views
Skip to first unread message

oldk1331

unread,
Jun 27, 2019, 4:57:08 AM6/27/19
to fricas...@googlegroups.com
The function "token_name" modifies global variable "ebuffer"
to contain information about "token.id", so clearly it intends
to print out "ebuffer" instead of "eb".

--- a/src/hyper/parse-types.c
+++ b/src/hyper/parse-types.c
@@ -157,7 +157,7 @@ parse_condnode(void)
{
char eb[128];
token_name(token.type);
- sprintf(eb, "Unexpected Token %s\n", eb);
+ sprintf(eb, "Unexpected Token %s\n", ebuffer);
htperror(eb, HTCONDNODE);
}
break;

Waldek Hebisch

unread,
Jun 27, 2019, 6:15:58 AM6/27/19
to fricas...@googlegroups.com
OK, please commit
> --
> You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
> To post to this group, send email to fricas...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/41b92c49-f32a-d90a-a338-ec4dd8e876bc%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages