[geany/geany] 847a75: Fix wrong format specifier in debug message

Enrico Tröger git-noreply at xxxxx
Sat Nov 7 21:26:17 UTC 2020


Branch:      refs/heads/1.37
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 07 Nov 2020 21:26:17 UTC
Commit:      847a758c054dd1006e53fe2cfbf4c6c5a720d9a6
             https://github.com/geany/geany/commit/847a758c054dd1006e53fe2cfbf4c6c5a720d9a6

Log Message:
-----------
Fix wrong format specifier in debug message

This led to crashes on Windows when starting without an existing
configuration file.

Closes #2639.


Modified Paths:
--------------
    src/libmain.c

Modified: src/libmain.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -406,7 +406,7 @@ static gint get_windows_socket_port(void)
 	if (! g_file_test(configfile, G_FILE_TEST_IS_REGULAR))
 	{
 		geany_debug(
-			"No user config file found, use default TCP port (%s).",
+			"No user config file found, use default TCP port (%d).",
 			SOCKET_WINDOWS_REMOTE_CMD_PORT);
 		g_free(configfile);
 		return SOCKET_WINDOWS_REMOTE_CMD_PORT;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list