mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Added missing \ character.
* glib/gshell.c: (g_shell_quote): Added missing \ character. * tests/shell-test.c: (check_string_result), (test_shell_unquote), (main): Added tests for g_shell_quote and g_shell_unquote.
This commit is contained in:
@@ -198,7 +198,7 @@ g_shell_quote (const gchar *unquoted_string)
|
||||
{
|
||||
/* Replace literal ' with a close ', a \', and a open ' */
|
||||
if (*p == '\'')
|
||||
g_string_append (dest, "'\''");
|
||||
g_string_append (dest, "'\\''");
|
||||
else
|
||||
g_string_append_c (dest, *p);
|
||||
|
||||
|
Reference in New Issue
Block a user