Skip to content

Commit 1b20315

Browse files
committed
Fix bug in mic2ascii(). It does not handle correctly if none ASCII
chars are in the input.
1 parent 8401f06 commit 1b20315

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy