]> git.sur5r.net Git - i3/i3/blobdiff - libi3/resolve_tilde.c
Install xdotool to run tests requiring it on Travis.
[i3/i3] / libi3 / resolve_tilde.c
index a4e82873151199a8f89378607f485a3910dfec48..26cbabe5f1679cd38ff4f7ac88f220cca2fb7c26 100644 (file)
@@ -2,7 +2,7 @@
  * vim:ts=4:sw=4:expandtab
  *
  * i3 - an improved dynamic tiling window manager
- * © 2009-2015 Michael Stapelberg and contributors (see also: LICENSE)
+ * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
  *
  */
 
@@ -23,7 +23,7 @@ char *resolve_tilde(const char *path) {
     char *head, *tail, *result;
 
     tail = strchr(path, '/');
-    head = strndup(path, tail ? (size_t)(tail - path) : strlen(path));
+    head = sstrndup(path, tail ? (size_t)(tail - path) : strlen(path));
 
     int res = glob(head, GLOB_TILDE, NULL, &globbuf);
     free(head);