diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2011-04-16 17:43:03 +0000 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2011-04-16 17:43:03 +0000 |
commit | 8d8e3ac50c2f63fd7f1cd836b6bbc46fedae0f1a (patch) | |
tree | a18b46c3ac70b0e29558cbe228eaa2af23e758b9 /libgfortran/runtime/backtrace.c | |
parent | 7070e6bd07fc8b9d65a21d37c7f20b24dfb34fe3 (diff) |
Replace sprintf with snprintf
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@172590 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/runtime/backtrace.c')
-rw-r--r-- | libgfortran/runtime/backtrace.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libgfortran/runtime/backtrace.c b/libgfortran/runtime/backtrace.c index 4a831c0d8b2..5e4f15c78c9 100644 --- a/libgfortran/runtime/backtrace.c +++ b/libgfortran/runtime/backtrace.c @@ -1,7 +1,7 @@ -/* Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2006, 2007, 2009, 2011 Free Software Foundation, Inc. Contributed by François-Xavier Coudert -This file is part of the GNU Fortran 95 runtime library (libgfortran). +This file is part of the GNU Fortran runtime library (libgfortran). Libgfortran is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -290,11 +290,7 @@ fallback: st_printf ("\nBacktrace for this error:\n"); arg[0] = (char *) "pstack"; -#ifdef HAVE_SNPRINTF snprintf (buf, sizeof(buf), "%d", (int) getppid ()); -#else - sprintf (buf, "%d", (int) getppid ()); -#endif arg[1] = buf; arg[2] = NULL; execvp (arg[0], arg); |