Skip to content

Commit 0d6facb

Browse files
author
Thomas G. Lockhart
committed
Modify one last line to complete changes for StrNCpy() macro addition.
Before, char16 was missing last character for output.
1 parent 4677f0a commit 0d6facb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/char.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.12 1997/10/25 01:10:32 momjian Exp $
15+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.13 1997/10/25 05:12:38 thomas Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -124,7 +124,7 @@ char16out(char *s)
124124
result[1] = '\0';
125125
}
126126
else
127-
StrNCpy(result, s, 16);
127+
StrNCpy(result, s, 17);
128128
return (result);
129129
}
130130

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