Go to file
deraadt 8a8e2eb04a correctly use HOST_NAME_MAX.
Some notes:
POSIX HOST_NAME_MAX doesn't include the NUL.
POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL.

BSD MAXHOSTNAMELEN includes the NUL.  Actually, most of the historical
BSD MAX* defines did include the NUL, except for the historical
mistake of utmp fields without NULs in the string, which directly led
to strncpy..  just showing how error prone this kind of accounting is.
CSRG did right.  Somehow POSIX missed the memo on the concepts of
carefulness and consistancy, and we are still paying the price when
people trip over this.  Of course, glibc is even more amazing (that is
a hint to blackhats)

ok guenther
2015-01-11 04:14:40 +00:00
Makefile Merge linkw and movew which are virtually identical. 2014-10-27 22:40:29 +00:00
arguments.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
array.h Add xreallocarray and remove nmemb argument from xrealloc. 2014-10-08 17:35:58 +00:00
attributes.c Use snprintf for constructing attribute string, from Tim Ruehsen. 2012-03-17 21:45:25 +00:00
cfg.c Move cfg_causes local into cfg.c and remove struct causelist. 2014-10-27 22:23:47 +00:00
client.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
cmd-attach-session.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-bind-key.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-break-pane.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-capture-pane.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-choose-buffer.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-choose-client.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-choose-tree.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-clear-history.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-clock-mode.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-command-prompt.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-confirm-before.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
cmd-copy-mode.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-delete-buffer.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-detach-client.c Move suspend-client code into detach-client. 2014-10-20 23:01:51 +00:00
cmd-display-message.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-display-panes.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-find-window.c Fix some spacing nits. 2014-10-22 23:18:53 +00:00
cmd-has-session.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-if-shell.c Add -F to if-shell to allow it to be used to check for format or option 2014-12-02 23:39:02 +00:00
cmd-join-pane.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-kill-pane.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-kill-server.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-kill-session.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-kill-window.c Merge unlink-window into kill-window. 2014-10-22 23:11:41 +00:00
cmd-list-buffers.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-list-clients.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-list-keys.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
cmd-list-panes.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-list-sessions.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-list-windows.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-list.c Various minor style and spacing nits. 2014-09-01 21:50:18 +00:00
cmd-load-buffer.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-lock-server.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-move-window.c Merge linkw and movew which are virtually identical. 2014-10-27 22:40:29 +00:00
cmd-new-session.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-new-window.c Move template defines back into .c files. 2014-10-20 23:35:28 +00:00
cmd-paste-buffer.c Tidy up mode-mouse check. 2014-11-05 23:25:02 +00:00
cmd-pipe-pane.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-queue.c Move cfg_causes local into cfg.c and remove struct causelist. 2014-10-27 22:23:47 +00:00
cmd-refresh-client.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-rename-session.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-rename-window.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-resize-pane.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-respawn-pane.c Missed a couple of cmd_entry struct members from previous. 2014-10-20 22:34:31 +00:00
cmd-respawn-window.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-rotate-window.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-run-shell.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-save-buffer.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-select-layout.c Missed a couple of cmd_entry struct members from previous. 2014-10-20 22:34:31 +00:00
cmd-select-pane.c Only redraw pane when it has actually changed. 2014-10-21 22:22:04 +00:00
cmd-select-window.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-send-keys.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-send-prefix.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-set-buffer.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-set-environment.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-set-option.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-show-buffer.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-show-environment.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-show-messages.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-show-options.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-source-file.c Move cfg_causes local into cfg.c and remove struct causelist. 2014-10-27 22:23:47 +00:00
cmd-split-window.c Add -b to splitw like joinw, from Felix Rosencrantz. 2014-11-12 22:57:06 +00:00
cmd-string.c Add xreallocarray and remove nmemb argument from xrealloc. 2014-10-08 17:35:58 +00:00
cmd-swap-pane.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-swap-window.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-switch-client.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-unbind-key.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-wait-for.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd.c Add xreallocarray and remove nmemb argument from xrealloc. 2014-10-08 17:35:58 +00:00
colour.c Remove tmux's (already minimal) 88 colour support. Such terminals are 2013-03-27 11:17:12 +00:00
control-notify.c Differentiate between linked and unlinked window closes and renames, 2014-04-23 10:14:29 +00:00
control.c Better format for printf format attributes. 2014-10-20 23:57:13 +00:00
environ.c Some more long lines. 2014-04-17 14:45:49 +00:00
format.c correctly use HOST_NAME_MAX. 2015-01-11 04:14:40 +00:00
grid-cell.c Rather than having two grids for each pane, one for ASCII and one for 2013-01-18 02:16:21 +00:00
grid-view.c Revert to r1.16 since this is still clearly broken and I can't see how 2015-01-06 21:14:42 +00:00
grid.c Add xreallocarray and remove nmemb argument from xrealloc. 2014-10-08 17:35:58 +00:00
input-keys.c Tidy up mode-mouse check. 2014-11-05 23:25:02 +00:00
input.c Add xreallocarray and remove nmemb argument from xrealloc. 2014-10-08 17:35:58 +00:00
job.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
key-bindings.c Fix some spacing nits. 2014-10-22 23:18:53 +00:00
key-string.c Drop explicit support for F13-F20 and change to match the xterm terminfo 2014-07-21 10:25:48 +00:00
layout-custom.c Fix handling of short (< 4 character) checksums and a bug with parsing 2013-03-25 11:35:30 +00:00
layout-set.c Some more long lines. 2014-04-17 14:45:49 +00:00
layout.c Both the two previous ways of navigating panes by direction have 2014-05-08 06:03:30 +00:00
log.c Prefer setvbuf() to setlinebuf() for portability; ok deraadt@ 2014-11-26 18:34:51 +00:00
mode-key.c Add V for select line with vi(1) keys. From Juho Pohjala. 2014-11-06 09:17:25 +00:00
names.c If multiple arguments are given to new-session, new-window, 2014-05-13 08:08:32 +00:00
notify.c Add notification for input from a pane, from George Nachman. 2012-09-25 07:41:22 +00:00
options-table.c Do not put a space between status-left/status-right and the window list, 2014-11-05 23:15:11 +00:00
options.c Better format for printf format attributes. 2014-10-20 23:57:13 +00:00
paste.c Tidy up mode-mouse check. 2014-11-05 23:25:02 +00:00
procname.c Track whether a process is a zombie or not yet fully built via flags 2014-07-04 05:58:31 +00:00
resize.c Label windows which are smaller than expected with a reason. 2014-11-14 02:19:47 +00:00
screen-redraw.c Label windows which are smaller than expected with a reason. 2014-11-14 02:19:47 +00:00
screen-write.c Two improvements to reflow from Balazs Kezes: 2014-11-08 12:58:31 +00:00
screen.c correctly use HOST_NAME_MAX. 2015-01-11 04:14:40 +00:00
server-client.c Fix some spacing nits. 2014-10-22 23:18:53 +00:00
server-fn.c Unzoom before kill, from Thomas Adam. 2015-01-06 09:12:53 +00:00
server-window.c Remove the monitor-content option and associated bits and bobs. It's 2014-04-17 07:36:45 +00:00
server.c Add pane_dead_status for exit status of dead panes. 2014-12-09 19:23:35 +00:00
session.c Fix some spacing nits. 2014-10-22 23:18:53 +00:00
signal.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
status.c Do not put a space between status-left/status-right and the window list, 2014-11-05 23:15:11 +00:00
style.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
tmux.1 Add missing default bindings, from Theo Buehler. 2015-01-06 09:12:02 +00:00
tmux.c Tidy up some includes. 2014-10-20 23:27:14 +00:00
tmux.h Add pane_dead_status for exit status of dead panes. 2014-12-09 19:23:35 +00:00
tty-acs.c Copy ACS characters as UTF-8, from Balazs Kezes. 2014-10-02 08:36:26 +00:00
tty-keys.c Fix some spacing nits. 2014-10-22 23:18:53 +00:00
tty-term.c Drop explicit support for F13-F20 and change to match the xterm terminfo 2014-07-21 10:25:48 +00:00
tty.c Remove support for the continuous reporting "any" mouse mode which never 2014-08-09 07:33:37 +00:00
utf8.c Add xreallocarray and remove nmemb argument from xrealloc. 2014-10-08 17:35:58 +00:00
window-choose.c Remove dead code, from Thomas Adam. 2014-11-30 08:03:29 +00:00
window-clock.c Having three *clock* files is ridiculous, remove clock.c. 2014-03-31 21:34:08 +00:00
window-copy.c Only redraw affected lines when selection changes with mouse. From 2014-12-15 10:02:55 +00:00
window.c Notify on zoom/unzoom, from George Nachmann. 2014-12-15 10:04:18 +00:00
xmalloc.c Better format for printf format attributes. 2014-10-20 23:57:13 +00:00
xterm-keys.c Drop explicit support for F13-F20 and change to match the xterm terminfo 2014-07-21 10:25:48 +00:00