use snprintf and cast to long.
This commit is contained in:
parent
71859f7093
commit
ed5ec7e8c7
|
@ -507,7 +507,7 @@ _rl_tropen ()
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue