Support paths containing spaces on Windows
Quote the arguments of "adb push" to support paths which contain spaces on Windows. Fixes <https://github.com/Genymobile/scrcpy/issues/288>.
This commit is contained in:
@@ -16,4 +16,8 @@ size_t xstrncpy(char *dest, const char *src, size_t n);
|
||||
// occurred, or n if truncated
|
||||
size_t xstrjoin(char *dst, const char *const tokens[], char sep, size_t n);
|
||||
|
||||
// quote a string
|
||||
// returns the new allocated string, to be freed by the caller
|
||||
char *strquote(const char *src);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user