0049-telnet-Fix-Wsign-compare-in-suboption.patch 783 B

1234567891011121314151617181920212223242526
  1. From b5a3863546dbcb16832cc5f39f47006df258fb26 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
  3. Date: Sat, 29 Feb 2020 19:30:20 +0100
  4. Subject: [PATCH 49/60] telnet: Fix -Wsign-compare in suboption
  5. ---
  6. telnet/telnet.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/telnet/telnet.c b/telnet/telnet.c
  9. index e35b04f2..c3d024c5 100644
  10. --- a/telnet/telnet.c
  11. +++ b/telnet/telnet.c
  12. @@ -860,7 +860,7 @@ suboption (void)
  13. name = gettermname ();
  14. len = strlen (name) + 4 + 2;
  15. - if ((len < NETROOM ()) && (len <= sizeof (temp)))
  16. + if ((len < NETROOM ()) && (len <= (int) sizeof (temp)))
  17. {
  18. snprintf ((char *) temp, sizeof (temp), "%c%c%c%c%s%c%c",
  19. IAC, SB, TELOPT_TTYPE, TELQUAL_IS,
  20. --
  21. 2.26.0.292.g33ef6b2f38