This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / usr.bin / elvis / modify.c
index af79146..79b9103 100644 (file)
@@ -378,7 +378,7 @@ void add(atmark, newtext)
        {
                /* hey, we probably can!  Get the following block & see... */
                following = blkget(blkno + 1);
        {
                /* hey, we probably can!  Get the following block & see... */
                following = blkget(blkno + 1);
-               if (strlen(following->c) + (build - blk->c) < BLKSIZE - 1)
+               if (strlen(following->c) + (build - blk->c) < (unsigned)(BLKSIZE - 1))
                {
                        /* we can!  Copy text from following to blk */
                        for (scan = following->c; *scan; )
                {
                        /* we can!  Copy text from following to blk */
                        for (scan = following->c; *scan; )