Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : enotes

Dir     : misc/enotes/src


Modified Files:
        note.c 


Log Message:
OK, update ewl folks - Enotes works :) - fix a few holes fore a blank note...
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- note.c      11 Mar 2005 23:28:25 -0000      1.42
+++ note.c      22 Mar 2005 16:51:14 -0000      1.43
@@ -573,7 +573,7 @@
 
        if (p->txt_title != NULL) {
                tmp = get_title_by_note_struct(p);
-               if (strcmp(p->txt_title, tmp)) {
+               if (tmp == NULL || strcmp(p->txt_title, tmp)) {
                        if (saveload != NULL)
                                ewl_saveload_revert(NULL, NULL, saveload->tree);
 
@@ -763,6 +763,9 @@
        int             a = 0;
        int             newlength = 0;
 
+       if (!content)
+               return NULL;
+
        while (a < TITLE_LENGTH && cont != NULL) {
                if (!strncmp(cont, "\n", 1)) {
                        newlength = a;




-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to