summaryrefslogtreecommitdiff
path: root/elf/sotruss-lib.c
diff options
context:
space:
mode:
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)