]> granicus.if.org Git - postgresql/commitdiff
Modify one last line to complete changes for StrNCpy() macro addition.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 25 Oct 1997 05:12:38 +0000 (05:12 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 25 Oct 1997 05:12:38 +0000 (05:12 +0000)
Before, char16 was missing last character for output.

src/backend/utils/adt/char.c

index 0ad01eca1b75e317b8371b82e383f1d873c29f8e..588c052d0e79dccc20e3cab46cf4a5435b93841e 100644 (file)
@@ -12,7 +12,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.12 1997/10/25 01:10:32 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.13 1997/10/25 05:12:38 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -124,7 +124,7 @@ char16out(char *s)
                result[1] = '\0';
        }
        else
-               StrNCpy(result, s, 16);
+               StrNCpy(result, s, 17);
        return (result);
 }