Index: gbatnav-1.0.4cvs20051004/gbnclient/gbnclient.c
===================================================================
--- gbatnav-1.0.4cvs20051004.orig/gbnclient/gbnclient.c	2005-06-24 12:49:45.000000000 +0800
+++ gbatnav-1.0.4cvs20051004/gbnclient/gbnclient.c	2011-09-17 22:39:18.504542902 +0800
@@ -58,8 +58,8 @@
 /* Function that loads the variables */
 static void init_args()
 {
-	gchar temporal[100];
-	sprintf(temporal,"/gbnclient/data/playername=%s",getenv("LOGNAME"));
+	gchar temporal[1024];
+	snprintf(temporal,sizeof(temporal)-1,"/gbnclient/data/playername=%s",getenv("LOGNAME"));
 	strncpy(usuario.nombre,gnome_config_get_string_with_default(temporal,NULL),MAXNAMELEN);
 
 	strncpy( usuario.server,gnome_config_get_string_with_default("/gbnclient/data/servername=localhost",NULL),MAXSERVERNAME);
