diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-02 22:57:50 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-02 22:57:50 -0400 |
commit | 359042081f7b97ae79dbfba21680e5e5f505c649 (patch) | |
tree | 5d97ec229fc7eb6c9c0b7fcfb2d7e21d4d7c97a3 /util | |
parent | 2bfacc63d3609cdc03bd0ecc8191c25711cf0ca0 (diff) |
Fix #40
Diffstat (limited to 'util')
-rw-r--r-- | util/log.c | 2 |
1 files changed, 1 insertions, 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 == '.') { |