Commit 95a8f89
authored
Fix null character termination in CString abstraction. (#7785)
## Summary of changes
Add null termination byte for CString abstraction.
## Reason for change
Testing the new libdatadog release I noticed some errors when Cstrings
were passed to the process discovery native API.
## Implementation details
Make extra space for null character and add the termination character at
the end of the buffer.
## Test coverage
🙈
## Other details1 parent febe959 commit 95a8f89
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
0 commit comments