1) Simplify (and make slightly more efficient) some code by using strdup()
instead of malloc()/strncpy().
2) Fix an off by one error that existed with the use of strncpy(). The
third argument must be the buffer size minus 1. The value provided was the
full buffer size.
3) Fix a smelling error in a comment.
4) Remove an unnecessary check before calling free() since free(NULL) is
safe.
Nobody/Anonymous
BZFS
None
Public
| Filename | Description | Download |
|---|---|---|
| bzfsapi_strdup.rev1.diff | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 350232: bzfsapi_strdup.rev1.diff | 2009-11-10 04:25 | russellbryant |