diff --git a/examples/automata-demo.c b/examples/automata-demo.c index 72262db..2fb4e49 100644 --- a/examples/automata-demo.c +++ b/examples/automata-demo.c @@ -45,7 +45,7 @@ void match_string(CompilerKitFSM *fsm) gchar *str; printf ("Enter a string: "); - scanf ("%20[^\n]s", buf); + scanf_s ("%20[^\n]s", buf); str = buf; state = compilerkit_FSM_get_start_state(fsm); while (*str) { diff --git a/examples/symbol-demo.c b/examples/symbol-demo.c index 1919239..5a50004 100644 --- a/examples/symbol-demo.c +++ b/examples/symbol-demo.c @@ -1,5 +1,6 @@ #include #include "CompilerKit/symbol.h" +#include /** Symbol unicode works (on Linux), but there's got to be an easier way. */ int main (int argc, char ** argv)