Permalink
Browse files

Explicitly compare result of assignment against null character.

  • Loading branch information...
1 parent 5a052f3 commit 4eba506472f6d97811e382d39791731b82a37612 @jonm committed Oct 10, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/comm.c
View
@@ -1535,7 +1535,7 @@ void act(char *str, int hide_invisible, struct char_data *ch,
break;
}
- while (*point = *(i++))
+ while ((*point = *(i++)) != '\0')
++point;
++strp;

0 comments on commit 4eba506

Please sign in to comment.