Fix: accept 255 character labels
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 21 Oct 2013 16:21:42 +0000 (19:21 +0300)
committerJarkko Sakkinen <jsakkine@jsakkine-smackbuntu.(none)>
Tue, 22 Oct 2013 05:52:14 +0000 (08:52 +0300)
commitb5693576f06eea0c7a925f75a1aafdd79186884f
tree8b5c0e636a3af20148c730c980963dd666a4d430
parent460fc81a6725d4d5df70480ae04b0303f4f56918
Fix: accept 255 character labels

Example:

 # /home/jsakkine/devel/smack/utils/chsmack \
   -a$(printf '12345%.0s' {1..51}) foo
 foo: Invalid argument
 # /home/jsakkine/devel/smack/utils/chsmack \
   -a$(printf '12345%.0s' {1..51} | head -c -1) foo
 #

This patch fixes this issue.
(cherry picked from commit 1794fed08418b0e254e1e3a7325a8a67f8186bbc)
utils/chsmack.c