]> git.sur5r.net Git - i3/i3/blobdiff - i3-config-wizard/main.c
Fix 'gcc -Wextra -Wno-unused-parameter'.
[i3/i3] / i3-config-wizard / main.c
index 626aa0bd11150f32a3218c4c12248922607b1e55..bdd012fc114a7c3ae08067d22657f9251f146176 100644 (file)
@@ -453,7 +453,7 @@ static char *resolve_tilde(const char *path) {
     char *head, *tail, *result;
 
     tail = strchr(path, '/');
-    head = strndup(path, tail ? tail - path : strlen(path));
+    head = strndup(path, tail ? (size_t)(tail - path) : strlen(path));
 
     int res = glob(head, GLOB_TILDE, NULL, &globbuf);
     free(head);