diff options
-rw-r--r-- | debian/changelog | 16 | ||||
-rw-r--r-- | packaging/tel-plugin-database.spec | 4 | ||||
-rw-r--r-- | src/database_main.c | 8 | ||||
-rw-r--r-- | tel-plugin-database.manifest | 11 |
4 files changed, 29 insertions, 10 deletions
diff --git a/debian/changelog b/debian/changelog index 65d5748..1bb4523 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,15 @@ +tel-plugin-database (0.1.4) unstable; urgency=low + + * package version sync with public + * Git: slp/pkgs/t/tel-plugin-database + * Tag: tel-plugin-database_0.1.4 + + -- Inho Oh <inho48.oh@samsung.com> Mon, 02 Apr 2012 14:54:27 +0900 + tel-plugin-database (0.1.3) unstable; urgency=low * fix crash - * Git: pkgs/t/tel-plugin-database + * Git: slp/pkgs/t/tel-plugin-database * Tag: tel-plugin-database_0.1.3 -- DongHoo Park <donghoo.park@samsung.com> Thu, 29 Mar 2012 13:49:39 +0900 @@ -9,7 +17,7 @@ tel-plugin-database (0.1.3) unstable; urgency=low tel-plugin-database (0.1.2) unstable; urgency=low * Fix prefix (TAPI_ to TCORE_) - * Git: pkgs/t/tel-plugin-database + * Git: slp/pkgs/t/tel-plugin-database * Tag: tel-plugin-database_0.1.2 -- Inho Oh <inho48.oh@samsung.com> Tue, 27 Mar 2012 22:12:52 +0900 @@ -17,7 +25,7 @@ tel-plugin-database (0.1.2) unstable; urgency=low tel-plugin-database (0.1.1) unstable; urgency=low * Add .spec file for OBS - * Git: pkgs/t/tel-plugin-database + * Git: slp/pkgs/t/tel-plugin-database * Tag: tel-plugin-database_0.1.1 -- DongHoo Park <donghoo.park@samsung.com> Fri, 16 Mar 2012 21:14:25 +0900 @@ -25,7 +33,7 @@ tel-plugin-database (0.1.1) unstable; urgency=low tel-plugin-database (0.1.0) unstable; urgency=low * initialize - * Git: pkgs/t/tel-plugin-database + * Git: slp/pkgs/t/tel-plugin-database * Tag: tel-plugin-database_0.1.0 -- Inho Oh <inho48.oh@samsung.com> Thu, 15 Mar 2012 23:40:55 +0900 diff --git a/packaging/tel-plugin-database.spec b/packaging/tel-plugin-database.spec index 952e743..06282e5 100644 --- a/packaging/tel-plugin-database.spec +++ b/packaging/tel-plugin-database.spec @@ -1,7 +1,7 @@ #sbs-git:slp/pkgs/t/tel-plugin-database Name: tel-plugin-database Summary: Telephony DataBase storage plugin -Version: 0.1.3 +Version: 0.1.5 Release: 1 Group: System/Libraries License: Apache @@ -24,7 +24,7 @@ Telephony DataBase storage plugin cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} make %{?jobs:-j%jobs} -%post +%post /sbin/ldconfig %postun -p /sbin/ldconfig diff --git a/src/database_main.c b/src/database_main.c index 093fa3c..a8f47d8 100644 --- a/src/database_main.c +++ b/src/database_main.c @@ -70,7 +70,7 @@ static gboolean update_query_database(Storage *strg, void *handle, const char *q dbg("update query"); memset(szQuery, '\0', 1000); - strcpy(szQuery, query); + strncpy(szQuery, query, 1000); rv = sqlite3_prepare_v2(handle, szQuery, strlen(szQuery), &stmt, NULL); if (rv != SQLITE_OK) { @@ -122,7 +122,7 @@ static gboolean read_query_database(Storage *strg, void *handle, const char *que dbg("read query"); memset(szQuery, '\0', 5000); - strcpy(szQuery, query); + strncpy(szQuery, query, 5000); rv = sqlite3_prepare_v2(handle, szQuery, strlen(szQuery), &stmt, NULL); if (rv != SQLITE_OK) { @@ -190,7 +190,7 @@ static gboolean insert_query_database(Storage *strg, void *handle, const char *q dbg("insert query"); memset(szQuery, '\0', 5000); - strcpy(szQuery, query); + strncpy(szQuery, query, 5000); rv = sqlite3_prepare_v2(handle, szQuery, strlen(szQuery), &stmt, NULL); if (rv != SQLITE_OK) { @@ -239,7 +239,7 @@ static gboolean remove_query_database(Storage *strg, void *handle, const char *q dbg("remove query"); memset(szQuery, '\0', 1000); - strcpy(szQuery, query); + strncpy(szQuery, query, 1000); rv = sqlite3_prepare_v2(handle, szQuery, strlen(szQuery), &stmt, NULL); if (rv != SQLITE_OK) { diff --git a/tel-plugin-database.manifest b/tel-plugin-database.manifest new file mode 100644 index 0000000..0fb5c39 --- /dev/null +++ b/tel-plugin-database.manifest @@ -0,0 +1,11 @@ +<manifest> + <request> + <domain name="telephony_framework"/> + </request> + <assign> + <filesystem path="/usr/lib/telephony/plugins/db-plugin.so" label="telephony_framework"/> + </assign> + <request> + <domain name="telephony_framework"/> + </request> +</manifest> |