Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/readline use snprintf and cast to long.
details: https://anonhg.NetBSD.org/src/rev/de342accfd9f
branches: trunk
changeset: 340038:de342accfd9f
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 20 17:25:50 2015 +0000
description:
use snprintf and cast to long.
diffstat:
external/gpl3/gdb/dist/readline/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 90690486ef4c -r de342accfd9f external/gpl3/gdb/dist/readline/util.c
--- a/external/gpl3/gdb/dist/readline/util.c Thu Aug 20 16:13:40 2015 +0000
+++ b/external/gpl3/gdb/dist/readline/util.c Thu Aug 20 17:25:50 2015 +0000
@@ -507,7 +507,7 @@
if (_rl_tracefp)
fclose (_rl_tracefp);
- sprintf (fnbuf, "/var/tmp/rltrace.%ld", getpid());
+ snprintf (fnbuf, sizeof(fnbuf), "/var/tmp/rltrace.%ld", (long)getpid());
unlink(fnbuf);
_rl_tracefp = fopen (fnbuf, "w+");
return _rl_tracefp != 0;
Home |
Main Index |
Thread Index |
Old Index