Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b20315

Browse files
committed
Fix bug in mic2ascii(). It does not handle correctly if none ASCII
chars are in the input.
1 parent8401f06 commit1b20315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/mb/conv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* WIN1250 client encoding support contributed by Pavel Behal
77
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
88
*
9-
* $Id: conv.c,v 1.29 2001/09/22 08:44:48 ishii Exp $
9+
* $Id: conv.c,v 1.30 2001/09/25 01:27:03 ishii Exp $
1010
*
1111
*
1212
*/
@@ -806,8 +806,8 @@ mic2ascii(unsigned char *mic, unsigned char *p, int len)
806806
else
807807
{/* should be ASCII */
808808
*p++=c1;
809+
mic++;
809810
}
810-
mic++;
811811
}
812812
*p='\0';
813813
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp