diff options
Diffstat (limited to 'src/lib/eiotas_iota.c')
-rw-r--r-- | src/lib/eiotas_iota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eiotas_iota.c b/src/lib/eiotas_iota.c index 95f8504..d41a69d 100644 --- a/src/lib/eiotas_iota.c +++ b/src/lib/eiotas_iota.c @@ -45,7 +45,7 @@ int eiotas_iota_init(Eiotas_Iota *iota, const char *name, Eiotas_Iota *parent, E } memcpy(tmp,parent->path,lp); tmp[lp]='/'; - memcpy((tmp+lp+1),name,ln+1); + memcpy((tmp+lp+sizeof(char)),name,ln+sizeof(char)); iota->name = eina_stringshare_add(name); iota->path = eina_stringshare_add(tmp); } else { |