qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs shell.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs shell.c
Date: Tue, 18 Dec 2007 12:18:55 +0000

CVSROOT:        /cvsroot/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        07/12/18 12:18:54

Modified files:
        .              : shell.c 

Log message:
        use ssizeof

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/shell.c?cvsroot=qemacs&r1=1.28&r2=1.29

Patches:
Index: shell.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/shell.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- shell.c     15 Dec 2007 16:44:31 -0000      1.28
+++ shell.c     18 Dec 2007 12:18:54 -0000      1.29
@@ -898,8 +898,8 @@
     case LOGOP_WRITE:
         while (size > 0) {
             len = size;
-            if (len > (int)sizeof(buf))
-                len = (int)sizeof(buf);
+            if (len > ssizeof(buf))
+                len = ssizeof(buf);
             memset(buf, s->color, len);
             eb_write(s->b_color, offset, buf, len);
             size -= len;
@@ -909,8 +909,8 @@
     case LOGOP_INSERT:
         while (size > 0) {
             len = size;
-            if (len > (int)sizeof(buf))
-                len = (int)sizeof(buf);
+            if (len > ssizeof(buf))
+                len = ssizeof(buf);
             memset(buf, s->color, len);
             eb_insert(s->b_color, offset, buf, len);
             size -= len;
@@ -1346,7 +1346,7 @@
                 goto next_line;
             if (c == ':')
                 break;
-            if ((q - filename) < (int)sizeof(filename) - 1)
+            if ((q - filename) < ssizeof(filename) - 1)
                 *q++ = c;
         }
         *q = '\0';




reply via email to

[Prev in Thread] Current Thread [Next in Thread]