Enlightenment CVS committal

Author  : fletch3k
Project : misc
Module  : enotes

Dir     : misc/enotes/src


Modified Files:
        note.c 


Log Message:
Fixed title grabbing

===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- note.c      14 Sep 2004 21:03:04 -0000      1.33
+++ note.c      15 Sep 2004 09:51:37 -0000      1.34
@@ -606,15 +606,14 @@
        int             a = 0;
        int             newlength = 0;
 
-       if (strlen(content) > TITLE_LENGTH)
-               while (a < TITLE_LENGTH && cont != NULL) {
-                       if (!strncmp(cont, "\n", 1)) {
-                               newlength = a;
-                               break;
-                       }
-                       a++;
-                       cont++;
+       while (a < TITLE_LENGTH && cont != NULL) {
+               if (!strncmp(cont, "\n", 1)) {
+                       newlength = a;
+                       break;
                }
+               a++;
+               cont++;
+       }
        a = 0;
 
        if (newlength == 0)




-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to