summaryrefslogtreecommitdiff
path: root/elf/sotruss-lib.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 19:30:36 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 19:30:36 +0000
commit704e05ff173885df6d1d27f381604429f27fd4de (patch)
treefc67caec36bc5ed0c4190cafd38f69850a10ca0a /elf/sotruss-lib.c
parentecfe3e291f848cf598309d746619de62ea88fabb (diff)
parent3fcbb67b7949a8b362de5558bf1c6dd7ec5d21cf (diff)
Merge branch 't/tls-threadvar' into refs/top-bases/t/ONSTACK
Diffstat (limited to 'elf/sotruss-lib.c')
-rw-r--r--elf/sotruss-lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/sotruss-lib.c b/elf/sotruss-lib.c
index 174f53f7c5..f0a7e55599 100644
--- a/elf/sotruss-lib.c
+++ b/elf/sotruss-lib.c
@@ -1,5 +1,5 @@
/* Trace calls through PLTs and show caller, callee, and parameters.
- Copyright (C) 2011-2016 Free Software Foundation, Inc.
+ Copyright (C) 2011-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gmail.com>, 2011.
@@ -84,11 +84,11 @@ init (void)
if (out_filename != NULL && out_filename[0] != 0)
{
- size_t out_filename_len = strlen (out_filename) + 12;
+ size_t out_filename_len = strlen (out_filename) + 13;
char fullname[out_filename_len];
char *endp = stpcpy (fullname, out_filename);
if (which_process == NULL || which_process[0] == '\0')
- snprintf (endp, 12, ".%lu", (unsigned long int) pid);
+ snprintf (endp, 13, ".%ld", (long int) pid);
out_fd = open (fullname, O_RDWR | O_CREAT | O_TRUNC, 0666);
if (out_fd != -1)