Karel Zak
928f320f09
ttymsg: fix resource leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 12:39:23 +01:00
leeceeksdee
3ba9018b85
he -> they
2020-08-28 19:11:02 +02:00
Yuriy M. Kaminskiy
06fa581748
misc: safer (and uniform) handling of return value
...
When `rc` is `INT_MAX`, `rc + 1` result in signed integer overflow.
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-07 15:11:06 +01:00
Sami Kerola
afbdd44fe3
term-utils: avoid error message string length couting errors
...
Remove various magic numbers with either a string lenght count, or a
symbolic variable that is recognized by gdb.
[kzak@redhat.com: - use snprintf() everywhere,
- check snprintf() return code rather than mess up
the code with strlens]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-12 13:37:35 +02:00
Sami Kerola
89dda67868
build-sys: remove unnecessary void casts
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-05-12 13:07:12 +02:00
Michael Forney
00c505d9cf
include: Add missing includes
...
sys/types.h: For u_char typedef
sys/params.h: For MAXNAMLEN
sys/ttydefaults.h: For various tty definitions (also add configure check)
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-04 11:51:21 +02:00
Sami Kerola
7f587afc67
wall: check writing to a file descriptor was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26 13:26:07 +02:00
Benno Schulenberg
b50945d4ac
textual: spell and encode the name of Arkadiusz Miśkiewicz correctly
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-02-06 11:15:02 +01:00
Benno Schulenberg
c602fe5a8e
textual: tag two bug messages as "internal error"
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-01-25 11:47:28 +01:00
Sami Kerola
cdd2a8c360
term-utils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:46:25 +02:00
Petr Uzel
960cf5737e
misc: use %m in format string instead of %s and strerror(errno)
...
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-09-27 15:46:07 +02:00
Sami Kerola
5e6bf8008b
ttymsg: fix compiler warnings and use EXIT_
...
[kzak@redhat.com: - remove 'register' storage class specifier]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-12 11:19:15 +02:00
Karel Zak
db6772a19c
build-sys: move wall to term-utils/
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-02 14:20:33 +01:00