/pidgin/main: 792ff0633917: configure.ac: Allocate 64 bytes for ...

Unknown Name fracting at gmail.com
Tue Feb 9 00:24:00 EST 2016


Changeset: 792ff0633917ebd23764e23f6610e2cc3a84278a
Author:	 Unknown Name <fracting at gmail.com>
Date:	 2016-02-08 18:25 +0000
Branch:	 fracting/configureac-allocate-64-bytes-for-strfti-1454955939684
URL: https://hg.pidgin.im/pidgin/main/rev/792ff0633917

Description:

configure.ac: Allocate 64 bytes for strftime buffer in order to avoid potential crashing on Windows.

diffstat:

 configure.ac |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -387,7 +387,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
 
 int main()
 {
-	char buf[6];
+	char buf[64];
 	time_t t = time(NULL);
 
 	if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5)



More information about the Commits mailing list