From 78a854dcc28e355d96beb53b90fd0dc5c5861f48 Mon Sep 17 00:00:00 2001 From: Philip On Date: Sat, 14 Jul 2012 19:13:14 -0400 Subject: [PATCH 1/2] removed g_printf undefined warnings with #include at top --- examples/symbol-demo.c | 1 + 1 file changed, 1 insertion(+) 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) From e4485f16ef3cb06f68a55aca2422374f2fdd064c Mon Sep 17 00:00:00 2001 From: Philip On Date: Sat, 14 Jul 2012 21:22:21 -0400 Subject: [PATCH 2/2] Got rid of scanf unsafe warning by replacing with scanf_s suggested method --- examples/automata-demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {