util: New function ovs_strzcpy().
authorBen Pfaff <blp@nicira.com>
Tue, 22 Feb 2011 18:58:36 +0000 (10:58 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 00:33:58 +0000 (16:33 -0800)
commit71d7c22f54ae32d15133571e09ddf7ab435e8afa
treecfdb28ddeebded6fe6400eb2dd6747a4d769aa45
parente868fb3d322f5c46385f1fc6db5bb1ab33f90305
util: New function ovs_strzcpy().

Static analyzers hate strncpy().  This new function shares its property of
initializing an entire buffer, without its nasty habit of failing to
null-terminate long strings.

Coverity #10697,10696,10695,10694,10693,10692,10691,10690.
lib/automake.mk
lib/netdev-linux.c
lib/socket-util.c
lib/util.c
lib/util.h