mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
Fix #40
This commit is contained in:
parent
2bfacc63d3
commit
359042081f
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ void _wlr_log(log_importance_t verbosity, const char *fmt, ...) {
|
|||
// '../backend/wayland/backend.c' will both be stripped to
|
||||
// 'backend/wayland/backend.c'
|
||||
const char *_strip_path(const char *filepath) {
|
||||
static int srclen = strlen(WLR_SRC_DIR) + 1;
|
||||
static int srclen = sizeof(WLR_SRC_DIR);
|
||||
if (strstr(filepath, WLR_SRC_DIR) == filepath) {
|
||||
filepath += srclen;
|
||||
} else if (*filepath == '.') {
|
||||
|
|
Loading…
Reference in a new issue