mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 14:20:05 -05:00
Remove unnecessary prefix char in escaping
We can encode it at higher level.
This commit is contained in:
parent
256db0e595
commit
dd87022490
5 changed files with 14 additions and 22 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue