Commit 736c4655 authored by Hiroshi Inoue's avatar Hiroshi Inoue

a fix from Eiji Tokuya.

parent cfbd8a78
...@@ -15,7 +15,7 @@ int multibyte_status ; /* Multibyte Odds and ends character. */ ...@@ -15,7 +15,7 @@ int multibyte_status ; /* Multibyte Odds and ends character. */
unsigned char *multibyte_strchr(unsigned char *s,unsigned char c) unsigned char *multibyte_strchr(unsigned char *s,unsigned char c)
{ {
int mb_st = 0 ,i = 0; int mb_st = 0 ,i = 0;
while (!(mb_st == 0 && s[i] == c || s[i] == 0)) while (!(mb_st == 0 && (s[i] == c || s[i] == 0)))
{ {
if (s[i] == 0) if (s[i] == 0)
return (0); return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment