scrcpy/app
Romain Vimont 137d2c9791 Remove confusing sc_str_truncate()
This util function was error-prone:
 - it accepted a buffer as parameter (not necessarily a NUL-terminated
   string) and its length (including the NUL char, if any);
 - it wrote '\0' over the last character of the buffer, so the last
   character was lost if the buffer was not a NUL-terminated string, and
   even worse, it caused undefined behavior if the length was empty;
 - it returned the length of the resulting NUL-terminated string,
   which was inconsistent with the input buffer length.

In addition, it was not necessarily optimal:
 - it wrote '\0' twice;
 - it required to know the buffer length, that is the input string
   length + 1, in advance.

Remove this function, and let the client use strcspn() manually.
2022-02-06 14:39:51 +01:00
..
src Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
tests Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
meson.build Move ADB code to adb/ 2022-02-04 08:39:10 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 1.22 2022-01-29 15:44:52 +01:00
scrcpy.1 Make HID keyboard and mouse optional in OTG mode 2022-01-27 23:36:27 +01:00