aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-09-25 01:27:03 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-09-25 01:27:03 +0000
commit1b20315008267c3b6c946c87cff5f9b0bcd1c44d (patch)
treeea93fce2b7d0998f13e28985e3d5a1c4ba059da5
parent8401f06efd814f3e1eaf5fbe2068594ab919aeb7 (diff)
downloadpostgresql-1b20315008267c3b6c946c87cff5f9b0bcd1c44d.tar.gz
postgresql-1b20315008267c3b6c946c87cff5f9b0bcd1c44d.zip
Fix bug in mic2ascii(). It does not handle correctly if none ASCII
chars are in the input.
-rw-r--r--src/backend/utils/mb/conv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/mb/conv.c b/src/backend/utils/mb/conv.c
index 7e7f94863b0..959d5fc5de5 100644
--- a/src/backend/utils/mb/conv.c
+++ b/src/backend/utils/mb/conv.c
@@ -6,7 +6,7 @@
* WIN1250 client encoding support contributed by Pavel Behal
* 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
{ /* should be ASCII */
*p++ = c1;
+ mic++;
}
- mic++;
}
*p = '\0';
}