Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d6f613

Browse files
committed
Increase buffer size in cash_words(). Pure paranoia; I don't think the
code is broken, but any small change in the output format might overrunthe buffer with the old size.
1 parent9318fa8 commit0d6f613

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/cash.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* workings can be found in the book "Software Solutions in C" by
1010
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
1111
*
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.53 2002/04/03 05:39:29petere Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.54 2002/08/20 16:46:29tgl Exp $
1313
*/
1414

1515
#include"postgres.h"
@@ -639,7 +639,7 @@ cash_words(PG_FUNCTION_ARGS)
639639
{
640640
Cashvalue=PG_GETARG_CASH(0);
641641
unsignedintval;
642-
charbuf[128];
642+
charbuf[256];
643643
char*p=buf;
644644
Cashm0;
645645
Cashm1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp