summaryrefslogtreecommitdiffstats
path: root/src/lib/eiotas_particle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eiotas_particle.c')
-rw-r--r--src/lib/eiotas_particle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eiotas_particle.c b/src/lib/eiotas_particle.c
index e1d8433..18fbdb5 100644
--- a/src/lib/eiotas_particle.c
+++ b/src/lib/eiotas_particle.c
@@ -104,8 +104,8 @@ EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, char* dest
n = (sep-dst);
if(n==0) {
ERR("ignore empty destination");
- } else if(n+2>EIOTAS_MAX_PATH_LENGTH) {
- ERR("buffer overflow (%d)",n);
+ } else if(n+1>EIOTAS_MAX_PATH_LENGTH) {
+ ERR("buffer overflow (%d)",n+1);
} else {
memcpy(tmp,dst,n);
tmp[n]='\0';