Changeset 195b6deb309ee2b12b47ac368b50d3ab720e3bf4
- Timestamp:
- 08/12/08 00:52:28
(5 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1218502348 +0000
- git-parent:
[dafb53298e4bc9ec88942a4ecaf61afe595e849a]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1218502348 +0000
- Message:
strlcpy will run over by one here. refs #51
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rdcd539d |
r195b6de |
|
| 132 | 132 | char *dst; |
|---|
| 133 | 133 | dst = malloc(len + 1); |
|---|
| 134 | | strlcpy(dst, src, len+1); |
|---|
| | 134 | strlcpy(dst, src, len); |
|---|
| | 135 | dst[len] = '\0'; |
|---|
| 135 | 136 | return dst; |
|---|
| 136 | 137 | } |
|---|