mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h.
This commit is contained in:
5
names.c
5
names.c
@ -1,4 +1,4 @@
|
||||
/* $Id: names.c,v 1.7 2009-06-25 16:21:32 nicm Exp $ */
|
||||
/* $Id: names.c,v 1.8 2009-06-25 16:47:00 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -101,9 +101,8 @@ parse_window_name(const char *in)
|
||||
}
|
||||
|
||||
if (*name == '/')
|
||||
name = xbasename(name);
|
||||
name = basename(name);
|
||||
name = xstrdup(name);
|
||||
xfree(copy);
|
||||
return (name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user