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 /test/pers_svc_test/src/test_pas_recovery_backup_content.c | |
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>
Diffstat (limited to 'test/pers_svc_test/src/test_pas_recovery_backup_content.c')
-rw-r--r-- | test/pers_svc_test/src/test_pas_recovery_backup_content.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |