commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_8-116-g0901548


From: Giuseppe Scrivano
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_8-116-g0901548
Date: Tue, 11 Oct 2011 13:34:37 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  0901548625c1ffd921fa4b03b7f68aaf159dce10 (commit)
      from  17d6784e33ccd6a7427e79846dfe44d86d4eaa8c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=0901548625c1ffd921fa4b03b7f68aaf159dce10


commit 0901548625c1ffd921fa4b03b7f68aaf159dce10
Author: Giuseppe Scrivano <address@hidden>
Date:   Tue Oct 11 15:30:45 2011 +0200

    Fix the usage of of some stack allocated variables out of their scope.

diff --git a/ChangeLog b/ChangeLog
index 76d4f03..be035cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-11  Giuseppe Scrivano  <address@hidden>
+
+       * ping/ping.c (parse_opt): Make `pattern' static.
+       * ping/ping6.c (parse_opt): Likewise.
+
 2011-09-01  Mats Erik Andersson <address@hidden>
 
        * src/syslogd.c (BindAddress): New variable.
diff --git a/ping/ping.c b/ping/ping.c
index 9319a47..fe65dd9 100644
--- a/ping/ping.c
+++ b/ping/ping.c
@@ -131,7 +131,7 @@ static error_t
 parse_opt (int key, char *arg, struct argp_state *state)
 {
   char *endptr;
-  u_char pattern[16];
+  static u_char pattern[16];
   double v;
 
   switch (key)
diff --git a/ping/ping6.c b/ping/ping6.c
index fd89537..6bb7618 100644
--- a/ping/ping6.c
+++ b/ping/ping6.c
@@ -102,7 +102,7 @@ static error_t
 parse_opt (int key, char *arg, struct argp_state *state)
 {
   char *endptr;
-  u_char pattern[16];
+  static u_char pattern[16];
 
   switch (key)
     {

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog    |    5 +++++
 ping/ping.c  |    2 +-
 ping/ping6.c |    2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]