Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : enotes

Dir     : misc/enotes/src


Modified Files:
        note.c 


Log Message:
Tidy, clean and working on OSX
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- note.c      23 Mar 2005 10:41:43 -0000      1.44
+++ note.c      5 Apr 2005 13:10:49 -0000       1.45
@@ -779,7 +779,9 @@
        if (newlength == 0)
                newlength = TITLE_LENGTH;
 
-       return ((char *) strndup(content, newlength));
+       cont = malloc((newlength * sizeof(char)) + 1);
+       snprintf(cont, newlength, "%s", content);
+       return cont;
 }
 
 /**




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to