mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix bug in mic2ascii(). It does not handle correctly if none ASCII
chars are in the input.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
* WIN1250 client encoding support contributed by Pavel Behal
|
* WIN1250 client encoding support contributed by Pavel Behal
|
||||||
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
|
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
|
||||||
*
|
*
|
||||||
* $Id: conv.c,v 1.29 2001/09/22 08:44:48 ishii Exp $
|
* $Id: conv.c,v 1.30 2001/09/25 01:27:03 ishii Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -806,8 +806,8 @@ mic2ascii(unsigned char *mic, unsigned char *p, int len)
|
|||||||
else
|
else
|
||||||
{ /* should be ASCII */
|
{ /* should be ASCII */
|
||||||
*p++ = c1;
|
*p++ = c1;
|
||||||
|
mic++;
|
||||||
}
|
}
|
||||||
mic++;
|
|
||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user