From: Hans Verkuil Date: Sat, 18 Jan 2014 09:06:01 +0000 (-0300) Subject: [media] v4l2-ctrls: return elem_size instead of strlen X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~351 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c336f75e1e822658122b96d874da01f5f4df994d;p=pandora-kernel.git [media] v4l2-ctrls: return elem_size instead of strlen When getting a string and the size given by the application is too short return the max length the string can have (elem_size) instead of the string length + 1. That makes more sense. Signed-off-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed