From be30645199ca380856652f8f03e9068cd31df576 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Thu, 22 Jul 2004 14:02:49 +0000 Subject: embarassing overflow in the hacker's guide example app CVS patchset: 6830 CVS date: 2004/07/22 14:02:49 --- doc/hackersguide/library.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/hackersguide/library.sgml b/doc/hackersguide/library.sgml index 907346bc2..69570fcc3 100644 --- a/doc/hackersguide/library.sgml +++ b/doc/hackersguide/library.sgml @@ -189,7 +189,7 @@ int main(int argc, char **argv) { /* load xine config file and init xine */ xine = xine_new(); - sprintf(configfile, "%s%s", xine_get_homedir(), "/.xine/config"); + snprintf(configfile, sizeof(configfile), "%s%s", xine_get_homedir(), "/.xine/config"); xine_config_load(xine, configfile); xine_init(xine); -- cgit v1.2.3