Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix construction of log file name with TR_EnablePIDExtension
* put pid and time in separate buffers so the file name can be created with a single call to sprintf(), which also eliminates the warning for strncat(buf, ".", 1) * fix bounds checking * fix operation order in getTimeInSeconds() * use sizeof instead of hard-coded constants Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
- Loading branch information
Showing
1 changed file
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters