It seems apparent that they never go negative. All instances are used to
manipulate strlen() values.

ok?


Index: c_ksh.c
===================================================================
RCS file: /cvs/src/bin/ksh/c_ksh.c,v
retrieving revision 1.46
diff -u -p -r1.46 c_ksh.c
--- c_ksh.c     21 Oct 2015 15:20:37 -0000      1.46
+++ c_ksh.c     22 Nov 2015 01:35:34 -0000
@@ -67,7 +67,7 @@ c_cd(char **wp)
                }
        } else if (!wp[2]) {
                /* Two arguments - substitute arg1 in PWD for arg2 */
-               int ilen, olen, nlen, elen;
+               size_t ilen, olen, nlen, elen;
                char *cp;
 
                if (!current_wd[0]) {
@@ -1182,7 +1182,8 @@ c_kill(char **wp)
                                        shprintf("%s%s", p, sigtraps[i].name);
                        shprintf("\n");
                } else {
-                       int w, i;
+                       int i;
+                       size_t w;
                        int mess_width;
                        struct kill_info ki;
 

Reply via email to