Removing '_' from CP Name. In DBUS TAPI, while creating object using telephony_object...
authorSuresh Kumar Narasimhaiah <suresh.n@samsung.com>
Thu, 14 Mar 2013 18:21:25 +0000 (23:51 +0530)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 09:03:13 +0000 (18:03 +0900)
src/server.c

index 7190365..0dd385f 100644 (file)
@@ -139,7 +139,7 @@ static char *_server_enumerate_modem(TcorePlugin *plugin)
 
        dbg("%s", filename);
 
-       return g_strdup_printf("%s_%d", filename, cp_counter++);
+       return g_strdup_printf("%s%d", filename, cp_counter++);
 }
 
 static TcoreModem *_server_find_modem(Server *s,
@@ -791,7 +791,7 @@ char **tcore_server_get_cp_name_list(Server *s)
        }
 
        /* (+1) is considered for NULL string to define the last string */
-       cp_name_list = g_try_new0(char *, list_count + 1);
+       cp_name_list = g_try_new0(char *, list_count);
        if (cp_name_list == NULL) {
                err("Failed to allocate memory");
                return NULL;