summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-10 11:53:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-10 11:53:16 +0200
commitf0cae8984ed2859c774dc5e112897a0822e5664d (patch)
treef3874d6e5bb200fcafb35b95c6bbbc6d3031b90b /src
parent351b285030ab96d94c2f4a2b7a01a64ae266a2a2 (diff)
downloadedoors-f0cae8984ed2859c774dc5e112897a0822e5664d.zip
edoors-f0cae8984ed2859c774dc5e112897a0822e5664d.tar.gz
edoors_particle_split_dst: use strcmp instead of strncmp
Diffstat (limited to 'src')
-rw-r--r--src/lib/edoors_particle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/edoors_particle.c b/src/lib/edoors_particle.c
index f1155be..913769e 100644
--- a/src/lib/edoors_particle.c
+++ b/src/lib/edoors_particle.c
@@ -137,7 +137,7 @@ EAPI void edoors_particle_split_dst(Edoors_Particle *particle)
/* action defined */
if(particle->cur_action) {
n = strlen(tmp);
- if( eina_stringshare_strlen(particle->cur_action)!=n || strncmp(particle->cur_action,tmp,n)!=0) {
+ if( eina_stringshare_strlen(particle->cur_action)!=n || strcmp(particle->cur_action,tmp)!=0) {
eina_stringshare_replace(&particle->cur_action,tmp);
}
/* else : keep the same stringshare */
@@ -162,7 +162,7 @@ EAPI void edoors_particle_split_dst(Edoors_Particle *particle)
n=(sep-dst);
/* door defined */
if(particle->cur_room) {
- if( eina_stringshare_strlen(particle->cur_room)!=n || strncmp(particle->cur_room,dst,n)!=0) {
+ if( eina_stringshare_strlen(particle->cur_room)!=n || strcmp(particle->cur_room,dst)!=0) {
eina_stringshare_del(particle->cur_room);
particle->cur_room = eina_stringshare_add_length(dst,n);
}
@@ -175,7 +175,7 @@ EAPI void edoors_particle_split_dst(Edoors_Particle *particle)
}
/* door defined */
if(particle->cur_door) {
- if( eina_stringshare_strlen(particle->cur_door)!=n || strncmp(particle->cur_door,sep,n)!=0) {
+ if( eina_stringshare_strlen(particle->cur_door)!=n || strcmp(particle->cur_door,sep)!=0) {
eina_stringshare_del(particle->cur_door);
particle->cur_door = eina_stringshare_add_length(sep,n);
}