discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=39d561c8b48cf327ed7dd70bb7e35fbf5f45a0e3

commit 39d561c8b48cf327ed7dd70bb7e35fbf5f45a0e3
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Oct 18 10:59:04 2016 -0400

    fix bryce upgrade path from 0 -> 2 re:naming
---
 src/bin/e_bryce.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index d441646..8d62216 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -433,8 +433,11 @@ _bryce_rename(Bryce *b, int num)
    char buf[1024], buf2[1024], *name, *p;
 
    name = strdup(b->name);
-   p = strrchr(name, '_');
-   p[0] = 0;
+   if (b->version >= 2)
+     {
+        p = strrchr(name, '_');
+        p[0] = 0;
+     }
    snprintf(buf, sizeof(buf), "__bryce%s", name);
    snprintf(buf2, sizeof(buf2), "__bryce%s_%d", name, num);
    e_gadget_site_rename(buf, buf2);

-- 


Reply via email to