Ticket #2913: ext.c_quote_mc_ext_env_vars.diff
File ext.c_quote_mc_ext_env_vars.diff, 1.1 KB (added by slackmail, 12 years ago) |
---|
-
./src/filemanager/ext.c
155 155 { 156 156 const char symbol; 157 157 const char *name; 158 const char *delim; 158 159 } export_variables[] = { 159 {'p', "MC_EXT_BASENAME" },160 {'d', "MC_EXT_CURRENTDIR" },161 {'s', "MC_EXT_SELECTED" },162 {'t', "MC_EXT_ONLYTAGGED" },163 {'\0', NULL }160 {'p', "MC_EXT_BASENAME", ""}, 161 {'d', "MC_EXT_CURRENTDIR", ""}, 162 {'s', "MC_EXT_SELECTED", "\""}, 163 {'t', "MC_EXT_ONLYTAGGED", "\""}, 164 {'\0', NULL, 0} 164 165 }; 165 166 /* *INDENT-ON* */ 166 167 … … 178 179 if (text != NULL) 179 180 { 180 181 g_string_append_printf (export_vars_string, 181 "%s=%s\nexport %s\n", export_variables[i].name, text, 182 "%s=%s%s%s\nexport %s\n", export_variables[i].name, 183 export_variables[i].delim, text, export_variables[i].delim, 182 184 export_variables[i].name); 183 185 g_free (text); 184 186 }