Author: titmuss
Date: Thu Nov 27 09:57:04 2008
New Revision: 3455

URL: http://svn.slimdevices.com?rev=3455&root=Jive&view=rev
Log:
Bug: N/A
Description:
Minor bug fixes.


Modified:
    
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/AboutJive/AboutJiveApplet.lua
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/system.c

Modified: 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/AboutJive/AboutJiveApplet.lua
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/share/applets/AboutJive/AboutJiveApplet.lua?rev=3455&root=Jive&r1=3454&r2=3455&view=diff
==============================================================================
--- 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/AboutJive/AboutJiveApplet.lua
 (original)
+++ 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/AboutJive/AboutJiveApplet.lua
 Thu Nov 27 09:57:04 2008
@@ -36,7 +36,7 @@
                tostring(self:string("ABOUT_VERSION")),
                version,
                "",
-               tostring(self:string("ABOUT_MAC_ADDRESS", 
System:getMacAddress())),
+               tostring(self:string("ABOUT_MAC_ADDRESS", 
System:getMacAddress()) or ""),
                "",
                tostring(self:string("ABOUT_CREDITS")),
                "     Sean Adams",

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/system.c
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/system.c?rev=3455&root=Jive&r1=3454&r2=3455&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/system.c (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/system.c Thu Nov 27 09:57:04 
2008
@@ -75,10 +75,18 @@
 
        lua_getfield(L, 2, "macAddress");
        if (!lua_isnil(L, -1)) {
+               char *ptr;
+
                if (mac_address) {
                        free(mac_address);
                }
                mac_address = strdup(lua_tostring(L, -1));
+
+               ptr = mac_address;
+               while (*ptr) {
+                       *ptr = tolower(*ptr);
+                       ptr++;
+               }
        }
        lua_pop(L, 1);
 
@@ -241,8 +249,17 @@
 
 int squeezeplayL_system_init(lua_State *L) {
        const char *homeenv = getenv("SQUEEZEPLAY_HOME");
+       char *ptr;
 
        mac_address = platform_get_mac_address();
+       if (mac_address) {
+               ptr = mac_address;
+               while (*ptr) {
+                       *ptr = tolower(*ptr);
+                       ptr++;
+               }
+       }
+
        arch = platform_get_arch();
        machine = strdup("squeezeplay");
        if (homeenv) {

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to