(tm-eword::encode-string-1): avoid infinite loop caused by long
[elisp/semi.git] / eword-encode.el
index 1609998..d83e260 100644 (file)
@@ -3,7 +3,7 @@
 ;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
 
 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Revision: 0.23 $
+;; Version: $Revision: 0.24 $
 ;; Keywords: encoded-word, MIME, multilingual, header, mail, news
 
 ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
@@ -36,7 +36,7 @@
 ;;;
 
 (defconst eword-encode-RCS-ID
-  "$Id: eword-encode.el,v 0.23 1997-06-21 15:15:31 morioka Exp $")
+  "$Id: eword-encode.el,v 0.24 1997-06-26 09:12:48 morioka Exp $")
 (defconst eword-encode-version (get-version-string eword-encode-RCS-ID))
 
 
@@ -280,7 +280,8 @@ MODE is allows `text', `comment', `phrase' or nil.  Default value is
         string len)
     (if (null ret)
        (cond ((and (setq string (car rword))
-                   (<= (setq len (+ (length string) column)) 76)
+                   (or (<= (setq len (+ (length string) column)) 76)
+                       (<= column 1))
                    )
               (setq rwl (cdr rwl))
               )