From fdbea8357f662b680e8284a7b215d3d4d6c76d34 Mon Sep 17 00:00:00 2001 From: avsm Date: Wed, 16 Apr 2003 08:29:17 +0000 Subject: [PATCH] increase a buffer size to avoid overflow; jcs@ ok --- databases/sqsh/patches/patch-src_var_date_c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 databases/sqsh/patches/patch-src_var_date_c diff --git a/databases/sqsh/patches/patch-src_var_date_c b/databases/sqsh/patches/patch-src_var_date_c new file mode 100644 index 00000000000..3c2b48e5053 --- /dev/null +++ b/databases/sqsh/patches/patch-src_var_date_c @@ -0,0 +1,21 @@ +$OpenBSD: patch-src_var_date_c,v 1.1 2003/04/16 08:29:17 avsm Exp $ +--- src/var_date.c.orig Mon Apr 14 13:35:42 2003 ++++ src/var_date.c Mon Apr 14 13:38:30 2003 +@@ -44,7 +44,7 @@ int var_get_date( env, var_name, var_val + char *var_name ; + char **var_value ; + { +- static char date_str[32] ; /* Hopefully large enough */ ++ static char date_str[64] ; /* Hopefully large enough */ + char *date_fmt ; + time_t cur_time ; + +@@ -69,7 +69,7 @@ int var_get_time( env, var_name, var_val + char *var_name ; + char **var_value ; + { +- static char time_str[32] ; /* Hopefully large enough */ ++ static char time_str[64] ; /* Hopefully large enough */ + char *time_fmt ; + time_t cur_time ; +