Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
hexchat
0001-Sanitize-network-name-for-scrollback-files...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Sanitize-network-name-for-scrollback-files.patch of Package hexchat
From 15600f405f2d5bda6ccf0dd73957395716e0d4d3 Mon Sep 17 00:00:00 2001 From: Patrick Griffis <tingping@tingping.se> Date: Sun, 11 Sep 2016 15:49:06 -0400 Subject: [PATCH] Sanitize network name for scrollback files This prevents using invalid chars on Windows or creating directories --- src/common/text.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/text.c b/src/common/text.c index 2af8ab0..1e9b313 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -79,6 +79,7 @@ scrollback_get_filename (session *sess) if (!net) return NULL; + net = log_create_filename (net); buf = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "scrollback" G_DIR_SEPARATOR_S "%s" G_DIR_SEPARATOR_S "%s.txt", get_xdir (), net, ""); mkdir_p (buf); g_free (buf); @@ -89,6 +90,7 @@ scrollback_get_filename (session *sess) else buf = NULL; g_free (chan); + g_free (net); if (buf) { -- 2.9.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor