(gnus-face-from-file, gnus-convert-png-to-face):
authorKai Grossjohann <kgrossjo@eu.uu.net>
Mon, 21 Apr 2003 11:42:07 +0000 (11:42 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Mon, 21 Apr 2003 11:42:07 +0000 (11:42 +0000)
Max length of header is 726, not 740.  From Gaute B Strokkenes
<gs234@cam.ac.uk>.

lisp/ChangeLog
lisp/gnus-fun.el

index 3ae8d1f..5b10f2c 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
+
+       * gnus-fun.el (gnus-face-from-file, gnus-convert-png-to-face):
+       Max length of header is 726, not 740.  From Gaute B Strokkenes
+       <gs234@cam.ac.uk>.
+
 2003-04-20  Jesper Harder  <harder@ifa.au.dk>
 
        * nndb.el, mml1991.el: Fix license template.
index aaf45cb..f906dec 100644 (file)
@@ -115,7 +115,7 @@ Output to the current buffer, replace text, and don't mingle error."
               (format gnus-convert-image-to-face-command
                       (shell-quote-argument (expand-file-name file))
                       quant)))
-       (if (> (length attempt) 740)
+       (if (> (length attempt) 726)
            (progn
              (setq quant (- quant 2))
              (message "Length %d; trying quant %d"
@@ -155,10 +155,10 @@ The PNG is returned as a string."
 (defun gnus-convert-png-to-face (file)
   "Convert FILE to a Face.
 FILE should be a PNG file that's 48x48 and smaller than or equal to
-740 bytes."
+726 bytes."
   (mm-with-unibyte-buffer
     (insert-file-contents file)
-    (when (> (buffer-size) 740)
+    (when (> (buffer-size) 726)
       (error "The file is %d bytes long, which is too long"
             (buffer-size)))
     (gnus-face-encode)))