]> granicus.if.org Git - sudo/commit
Add ssizeof macro that returns ssize_t.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 25 Jun 2019 15:45:10 +0000 (09:45 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 25 Jun 2019 15:45:10 +0000 (09:45 -0600)
commit9d8f374397db2ee32840d0f0e2bb2d7539758a0d
treeba0ab53c2e3a464fb5cad38d685facb527450e27
parent81602ad086e6fafe931831ff08a257289077d83e
Add ssizeof macro that returns ssize_t.
We can use this instead of casting the result of size_t to int.
Also change checks for snprintf() returning <=0 to <0.
17 files changed:
include/sudo_util.h
lib/util/fatal.c
lib/util/inet_ntop.c
lib/util/regress/vsyslog/vsyslog_test.c
lib/util/sudo_debug.c
plugins/sudoers/find_path.c
plugins/sudoers/group_plugin.c
plugins/sudoers/iolog.c
plugins/sudoers/ldap.c
plugins/sudoers/ldap_conf.c
plugins/sudoers/logging.c
plugins/sudoers/sudoers.c
plugins/sudoers/sudoreplay.c
plugins/sudoers/timestamp.c
src/load_plugins.c
src/net_ifs.c
src/sudo.c