mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
Fix dstr_end bug (it's len - 1)
Somewhat of an embarassing fix. Using 'len' will just return the null terminator.
This commit is contained in:
+1
-1
@@ -313,7 +313,7 @@ static inline char dstr_end(const struct dstr *str)
|
||||
if (dstr_isempty(str))
|
||||
return 0;
|
||||
|
||||
return str->array[str->len];
|
||||
return str->array[str->len - 1];
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user