Commit 27cfc4e
committed
Only perform the strcpy if writeTo and readFrom are different from one another, otherwise valgrind is raising an error (and would be right about doing so).
Valgrind error message: Source and destination overlap in strcpy
Further information: https://www.valgrind.org/docs/manual/mc-manual.html#mc-manual.overlap1 parent 4e295b1 commit 27cfc4e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
| 660 | + | |
660 | 661 | | |
661 | 662 | | |
662 | 663 | | |
| |||
0 commit comments