kon2 (0.3.9b-20) tools/logto.c

Summary

 tools/logto.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

--- kon2-0.3.9b.orig/tools/logto.c
+++ kon2-0.3.9b/tools/logto.c
@@ -21,7 +21,7 @@
 		len = 0;
 	} else {
 		getcwd(path, _POSIX_PATH_MAX);
-		sprintf(name, "%s/%s", path, argv[1]);
+		snprintf(name, sizeof(name), "%s/%s", path, argv[1]);
 		len = strlen(name) + 1;
 	}
 	SocketSendStr(s, STR_LOGTO);