Generalize string trunctation util function
Add an additional argument to let the client pass the possible end chars.
This commit is contained in:
@@ -264,6 +264,6 @@ adb_get_serialno(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sc_str_truncate_first_line(buf, r);
|
||||
sc_str_truncate(buf, r, "\r\n");
|
||||
return strdup(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user