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

Commit3589f71

Browse files
committed
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] backend/utils/adt/nabstime.cThere is a problem with some of the calls to strftime. The second arg ismissing. In all cases the buffer is CTZName which, according to thefile init/globals.c, is char CTZName[8] so I have added this value.I know there should be a #define set up for this but I wasn't surewhich header to put it in.
1 parent69c2c66 commit3589f71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.15 1997/03/18 16:35:20 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.16 1997/03/21 18:53:28 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -62,13 +62,13 @@ GetCurrentAbsoluteTime(void)
6262
CTimeZone=-tmnow->tm_gmtoff;/* tm_gmtoff is Sun/DEC-ism */
6363
CDayLight= (tmnow->tm_isdst>0);
6464
/* XXX is there a better way to get local timezone string in V7? - tgl 97/03/18 */
65-
strftime(CTZName,"%Z",localtime(&now));
65+
strftime(CTZName,8,"%Z",localtime(&now));
6666
#endif
6767
#else/* ! USE_POSIX_TIME */
6868
CTimeZone=tbnow.timezone*60;
6969
CDayLight= (tbnow.dstflag!=0);
7070
/* XXX does this work to get the local timezone string in V7? - tgl 97/03/18 */
71-
strftime(CTZName,"%Z",localtime(&now));
71+
strftime(CTZName,8,"%Z",localtime(&now));
7272
#endif
7373
};
7474

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp