- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd2a1ed1
committed
Add missing string terminator
When copying the string strncpy won't add nul termination sincethe string length is equal to the length specified. Explicitlyset a nul terminator after copying to properly terminate. Foundvia post-commit review.Author: Rahila Syed <rahilasyed90@gmail.com>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion:https://postgr.es/m/CAH2L28vt16C9xTuK+K7QZvtA3kCNWXOEiT=gEekUw3Xxp9LVQw@mail.gmail.com1 parent991407a commitd2a1ed1
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1663 | 1663 |
| |
1664 | 1664 |
| |
1665 | 1665 |
| |
| 1666 | + | |
1666 | 1667 |
| |
1667 | 1668 |
| |
1668 | 1669 |
| |
|
0 commit comments
Comments
(0)