diff options
author | Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com> | 2019-06-11 17:34:33 +0200 |
---|---|---|
committer | gunnarx <gunnarx@users.noreply.github.com> | 2019-06-18 15:15:41 +0200 |
commit | bfe6519c91ffda39004b485d3d6abc852efe913e (patch) | |
tree | d2d1e1a6dcfda0220135d38216b933a871188c4f | |
parent | ebfb5ddea6976d1a30da78b17bf9821f2b0fda80 (diff) | |
download | persistence-administrator-master.tar.gz |
Fixes the following error when bulding with GCC 8.2 and
-Werror=format-security:
error: format not a string literal and no format arguments
[-Werror=format-security]
Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
-rw-r--r-- | Administrator/src/ssw_pers_admin_common.c | 2 | ||||
-rw-r--r-- | test/pers_svc_test/src/test_pas_import_source_content.c | 2 | ||||
-rw-r--r-- | test/pers_svc_test/src/test_pas_recovery_backup_content.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Administrator/src/ssw_pers_admin_common.c b/Administrator/src/ssw_pers_admin_common.c index df4c0e1..0ae30b7 100644 --- a/Administrator/src/ssw_pers_admin_common.c +++ b/Administrator/src/ssw_pers_admin_common.c @@ -595,7 +595,7 @@ sint_t persadmin_compress(pstr_t compressTo, pstr_t compressFrom) } memset(pchParentPath, 0, sizeof(pchParentPath)); - snprintf(pchParentPath, sizeof(pchParentPath), compressFrom); + snprintf(pchParentPath, sizeof(pchParentPath), "%s", compressFrom); pchStrPos = strrchr(pchParentPath, '/'); if(NIL != pchStrPos) { diff --git a/test/pers_svc_test/src/test_pas_import_source_content.c b/test/pers_svc_test/src/test_pas_import_source_content.c index b0aeaa4..101d4aa 100644 --- a/test/pers_svc_test/src/test_pas_import_source_content.c +++ b/test/pers_svc_test/src/test_pas_import_source_content.c @@ -778,7 +778,7 @@ static sint_t persadmin_compress(pstr_t compressTo, pstr_t compressFrom) } memset(pchParentPath, 0, sizeof(pchParentPath)); - snprintf(pchParentPath, sizeof(pchParentPath), compressFrom); + snprintf(pchParentPath, sizeof(pchParentPath), "%s", compressFrom); pchStrPos = strrchr(pchParentPath, '/'); if(NIL != pchStrPos) { diff --git a/test/pers_svc_test/src/test_pas_recovery_backup_content.c b/test/pers_svc_test/src/test_pas_recovery_backup_content.c index 93fb025..35d2435 100644 --- a/test/pers_svc_test/src/test_pas_recovery_backup_content.c +++ b/test/pers_svc_test/src/test_pas_recovery_backup_content.c @@ -775,7 +775,7 @@ static sint_t persadmin_compress(pstr_t compressTo, pstr_t compressFrom) } memset(pchParentPath, 0, sizeof(pchParentPath)); - snprintf(pchParentPath, sizeof(pchParentPath), compressFrom); + snprintf(pchParentPath, sizeof(pchParentPath), "%s", compressFrom); pchStrPos = strrchr(pchParentPath, '/'); if(NIL != pchStrPos) { |