aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-05-21 22:38:39 +0200
committerBoris Faure <billiob@gmail.com>2016-05-21 22:38:39 +0200
commitf33aa07b811779608f7557fe667794e9de823f88 (patch)
tree760252aa84f65ff3ad2a9163e2106fe39a4979b0
parentMerge remote-tracking branch 'raboof/font_size_change' (diff)
downloadterminology-f33aa07b811779608f7557fe667794e9de823f88.tar.gz
termptyesc: fix signedness comparison
-rw-r--r--src/bin/termptyesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index cd920d1..96157da 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1217,9 +1217,9 @@ _handle_xterm_50_command(Termpty *ty,
char *s,
int len)
{
- int i;
+ size_t i;
int size;
- for (i = 0; i < len - strlen(":size="); i++)
+ for (i = 0; i < (size_t)len - strlen(":size="); i++)
{
if (strncmp(s + i, ":size=", strlen(":size=")) == 0)
{