Enlightenment CVS committal
Author : xcomputerman
Project : e17
Module : apps/entrance
Dir : e17/apps/entrance/src/client
Modified Files:
main.c
Log Message:
- New Enlightened default theme, by Raster. _Very_ cool.
No, the power button doesn't work yet.
- Former default theme has been renamed to 'Nebulous'.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- main.c 17 Sep 2003 07:04:30 -0000 1.8
+++ main.c 14 Oct 2003 07:41:04 -0000 1.9
@@ -86,13 +86,19 @@
{
char buf[255]; /* some standard somewhere limits hostname
lengths to this */
+ char *dot;
char message[PATH_MAX];
char *result = NULL;
if (!(gethostname(buf, 255)))
{
- snprintf(message, PATH_MAX, "%s%s%s", session->config->before.string,
+ /* Ensure that hostname is in short form */
+ dot = strstr(buf, ".");
+ if(dot)
+ *dot = '\0';
+
+ snprintf(message, PATH_MAX, "%s %s %s", session->config->before.string,
buf, session->config->after.string);
}
else
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs