Fix some format specifier nits, from Ben Boeckel.

This commit is contained in:
nicm
2015-03-31 17:45:10 +00:00
parent cd9ccbc1e9
commit 02df86079b
12 changed files with 31 additions and 31 deletions

View File

@ -41,9 +41,9 @@ server_fill_environ(struct session *s, struct environ *env)
idx = s->id;
} else
idx = -1;
idx = (u_int)-1;
pid = getpid();
xsnprintf(var, sizeof var, "%s,%ld,%d", socket_path, pid, idx);
xsnprintf(var, sizeof var, "%s,%ld,%u", socket_path, pid, idx);
environ_set(env, "TMUX", var);
}