Helper function get_label()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 19 Nov 2013 11:49:37 +0000 (13:49 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 20 Nov 2013 07:49:06 +0000 (09:49 +0200)
commitc86ec5e55b0734b7b8c2381a3bbe4a9d52b54b03
tree02fd0ff087ed1ee1918ae01e8376b507d195420b
parent54d38221e5027339338e1f2dc5dd7fef9b7a6f95
Helper function get_label()

The helper function ssize_t get_label(char *dest, const char *src)
validates the given label and copies it to the dest buffer if
available.
(cherry picked from commit 09fdff9a456dec54a4c8548c9b9acbcbce48d59a)
libsmack/libsmack.c