Remove unnecessary prefix char in escaping

We can encode it at higher level.
This commit is contained in:
Andrea Mazzoleni 2016-05-29 18:23:43 +02:00
parent 256db0e595
commit dd87022490
5 changed files with 14 additions and 22 deletions

View file

@ -227,10 +227,9 @@ const char* esc_tag(const char* str, char* buffer);
/**
* Escape a string for the shell.
*
* \param prefix Char to prefix at the string.
* \param buffer Preallocated buffer of ESC_MAX size.
*/
const char* esc_shell(char prefix, const char* str, char* buffer);
const char* esc_shell(const char* str, char* buffer);
/**
* Polish a string.