From 9cade02e7a27e49b461383ef36ac84243a0d43ff Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 7 Sep 2010 07:33:44 +0000 Subject: [PATCH] Reverted an accidentally committed change. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2066 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_user.c b/scst/src/dev_handlers/scst_user.c index a1e2aa628..b83f4e354 100644 --- a/scst/src/dev_handlers/scst_user.c +++ b/scst/src/dev_handlers/scst_user.c @@ -2765,7 +2765,7 @@ static void dev_user_setup_functions(struct scst_user_dev *dev) static int dev_user_check_version(const struct scst_user_dev_desc *dev_desc) { - char str[sizeof(DEV_USER_VERSION) > 20 ? sizeof(DEV_USER_VERSION) : 20]; + char str[max_t(int, sizeof(DEV_USER_VERSION)+1, 20)]; int res = 0, rc; rc = copy_from_user(str,