Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_filelist.c
Log Message:
- ctime terminates with a \n. remove it as ewl_label doesn't like \n
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- ewl_filelist.c 6 Mar 2007 08:01:56 -0000 1.28
+++ ewl_filelist.c 12 Mar 2007 08:26:33 -0000 1.29
@@ -360,7 +360,11 @@
DENTER_FUNCTION(DLEVEL_STABLE);
time = ctime(&st_modtime);
- if (time) time = strdup(time);
+ if (time)
+ {
+ time = strdup(time);
+ time[strlen(time) - 1] = '\0';
+ }
else time = strdup("unknown");
DRETURN_PTR(time, DLEVEL_STABLE);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs