diff options
author | Tomasz Swierczek <t.swierczek@samsung.com> | 2020-01-15 13:37:25 +0100 |
---|---|---|
committer | Tomasz Swierczek <t.swierczek@samsung.com> | 2020-01-15 13:42:09 +0100 |
commit | fe1840be4019209ea54141667665d4a1c2c298bd (patch) | |
tree | 466d3a2fc7d21a0959238ee66620c7147717361c | |
parent | 8a7dcc7768954564993e6828e305603e1ce2943f (diff) | |
download | libcryptsvc-accepted/tizen_7.0_unified.tar.gz libcryptsvc-accepted/tizen_7.0_unified.tar.bz2 libcryptsvc-accepted/tizen_7.0_unified.zip |
Add fixes for gcc 9tizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211028.162401submit/tizen_6.0_hotfix/20201103.114804submit/tizen_6.0_hotfix/20201102.192504submit/tizen_6.0/20201029.205104submit/tizen/20200116.024739accepted/tizen/unified/20200116.103355accepted/tizen/7.0/unified/hotfix/20221116.105614accepted/tizen/7.0/unified/20221110.061717accepted/tizen/6.5/unified/20211028.120807accepted/tizen/6.0/unified/hotfix/20201103.004314accepted/tizen/6.0/unified/20201030.115155tizen_7.0_hotfixtizen_6.5tizen_6.0_hotfixtizen_6.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: Ic1c3742b41591f22ecbec30bf140acc1cc17082f
-rw-r--r-- | srcs/SecCryptoSvc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/srcs/SecCryptoSvc.c b/srcs/SecCryptoSvc.c index c839efe..95861de 100644 --- a/srcs/SecCryptoSvc.c +++ b/srcs/SecCryptoSvc.c @@ -246,8 +246,10 @@ char *GetDuid(int idSize) goto exit; } - strncpy(pKeyVersion, version, strlen(version)); - strncat(pKeyVersion, pId, strlen(pId)); + unsigned int verLen = strlen(version); + + memcpy(pKeyVersion, version, verLen + 1); + memcpy(pKeyVersion + verLen, pId, strlen(pId) + 1); exit: free(pKey); free(pDuid); |