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/44dcb39c0d41
branches: trunk
changeset: 810180:44dcb39c0d41
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 09f978d1ab59 -r 44dcb39c0d41 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