From cff024120ab8e7f5f4f6f96d5f40b6011beebec6 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Fri, 6 Jul 2001 18:01:22 +0000
Subject: [PATCH] Terminate message doesn't have a trailing zero byte.

---
 src/interfaces/jdbc/org/postgresql/PG_Stream.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/interfaces/jdbc/org/postgresql/PG_Stream.java b/src/interfaces/jdbc/org/postgresql/PG_Stream.java
index fb97d3a24b6..44d84a8e5a3 100644
--- a/src/interfaces/jdbc/org/postgresql/PG_Stream.java
+++ b/src/interfaces/jdbc/org/postgresql/PG_Stream.java
@@ -383,7 +383,7 @@ public class PG_Stream
    */
   public void close() throws IOException
   {
-    pg_output.write("X\0".getBytes());
+    pg_output.write("X".getBytes());
     pg_output.flush();
     pg_output.close();
     pg_input.close();
@@ -391,4 +391,3 @@ public class PG_Stream
   }
 
 }
-
-- 
GitLab