Commit 0fa4baea authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Using memcpy() in bstrcpy() confused FlexeLint, use strcpy() instead.

parent e9a460f8
......@@ -59,9 +59,8 @@
/* Safe strcpy into a fixed-size buffer */
#define bstrcpy(dst, src) \
do { \
size_t lbstrcpy = strlen(src) + 1; \
assert(lbstrcpy <= sizeof dst); \
memcpy(dst, src, lbstrcpy); \
assert(strlen(src) + 1 <= sizeof (dst)); \
strcpy((dst), (src)); \
} while (0)
// TODO #define strcpy BANNED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment