Changeset ede78d037149ae494e3f4934bac0623b9858d413
- Timestamp:
- 04/09/09 16:44:12
(4 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1239295452 +0000
- git-parent:
[4a80cb40b2665637f353f2f1286a1565acb58031]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1239295452 +0000
- Message:
fix truncation bug in strlcpy.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbafab25 |
rede78d0 |
|
| 23 | 23 | if(sz >= 0) { |
|---|
| 24 | 24 | strncat(dst, src, sz); |
|---|
| 25 | | dst[sz] = '\0'; |
|---|
| | 25 | dst[dl+sz] = '\0'; |
|---|
| 26 | 26 | } |
|---|
| 27 | 27 | |
|---|