aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_list_methods.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
committerMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
commitb058098fdcc5d4ed9b81fdb17f64820c0360ad48 (patch)
treee39e5f547b900922775d466507c29b352f046a53 /libgamma_list_methods.c
parentmisc (diff)
downloadlibgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.gz
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.bz2
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.xz
m + style fix + check memory allocation overflows
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libgamma_list_methods.c')
-rw-r--r--libgamma_list_methods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgamma_list_methods.c b/libgamma_list_methods.c
index 6da4f43..cca8426 100644
--- a/libgamma_list_methods.c
+++ b/libgamma_list_methods.c
@@ -14,7 +14,7 @@ is_vt_proper(int fd)
char buf[32], digit0;
/* Get TTY */
- if (ttyname_r(fd, buf, sizeof(buf) / sizeof(char)))
+ if (ttyname_r(fd, buf, sizeof(buf)))
return 0;
/* Validate TTY path */