mirror of
https://github.com/ittiam-systems/libavc.git
synced 2026-10-06 02:31:16 +07:00
No description
Don't do concatenation with strncat; the length parameter in strncat is only for how many chars to append at most, not for the full output buffer size. To safely use strncat, one would have to do strncat(buf, str, sizeof(buf) - strlen(buf)). By using snprintf, we guarantee that the buffer is null terminated, and we don't need to use strnlen at all. (If compatibility with older MSVC versions that lack snprintf, one can use _snprintf instead and manually add the null termination.) Change-Id: I1c2322c7a406ddd5e6551a96c460da60deeffda1 |
||
|---|---|---|
| common | ||
| decoder | ||
| encoder | ||
| test | ||
| Android.mk | ||
| decoder.arm.mk | ||
| decoder.arm64.mk | ||
| decoder.mips.mk | ||
| decoder.mips64.mk | ||
| decoder.mk | ||
| decoder.x86.mk | ||
| decoder.x86_64.mk | ||
| encoder.arm.mk | ||
| encoder.arm64.mk | ||
| encoder.mips.mk | ||
| encoder.mips64.mk | ||
| encoder.mk | ||
| encoder.x86.mk | ||
| encoder.x86_64.mk | ||