Fixed comparison to be signed instead of unsigned.
authorDavid Levine <levinedl@acm.org>
Sat, 3 Nov 2012 13:13:34 +0000 (08:13 -0500)
committerDavid Levine <levinedl@acm.org>
Sat, 3 Nov 2012 13:13:34 +0000 (08:13 -0500)
uip/mhshowsbr.c

index 99db9f8..550669a 100644 (file)
@@ -980,7 +980,7 @@ raw:
     }
 
     if (buflen <= 0 ||
-        (ct->c_termproc && (size_t) buflen <= strlen(ct->c_termproc))) {
+        (ct->c_termproc && buflen <= (ssize_t) strlen(ct->c_termproc))) {
        /* content_error would provide a more useful error message
         * here, except that if we got overrun, it probably would
         * too.