diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-08-05 14:17:33 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-08-05 14:17:33 +0100 |
commit | 970b620f5afe6b9d69226776868f26adc110ce40 (patch) | |
tree | 72c669e33e9f5fcae7276b460004b9b198d73cd4 /src/lib/ethumb | |
parent | 9ea4bb8fc79b69e18187cd4c1f5b97239c180a90 (diff) | |
download | efl-970b620f5afe6b9d69226776868f26adc110ce40.tar.gz |
ethumb - make coverity happy by including null char
doesnt cost us much to memcpy the nul byte too to keep coverity happy.
fix CID 1402690
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r-- | src/lib/ethumb/ethumb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c index cf22911921..8a14385662 100644 --- a/src/lib/ethumb/ethumb.c +++ b/src/lib/ethumb/ethumb.c @@ -929,7 +929,7 @@ _ethumb_generate_hash(const char *file) EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL); uri = alloca(3 * strlen(file) + 9); - memcpy(uri, "file://", sizeof("file://") - 1); + memcpy(uri, "file://", sizeof("file://")); t = uri + sizeof("file://") - 1; for (c = (const unsigned char *)file; *c != '\0'; c++) |