[ofw] [PATCH] dapl-2.0: dapltest: server info devicename is not large enough for dapl_name storage

Davis, Arlin R arlin.r.davis at intel.com
Wed May 19 16:31:28 PDT 2010


Server info device name is a 80 char array but the dapl device name
that is copied is 256 bytes. Increase started_server.devicename definition.
Chalk one up for windows SDK OACR (auto code review).

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
 test/dapltest/include/dapl_server_info.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/dapltest/include/dapl_server_info.h b/test/dapltest/include/dapl_server_info.h
index de038c5..898f9cc 100644
--- a/test/dapltest/include/dapl_server_info.h
+++ b/test/dapltest/include/dapl_server_info.h
@@ -37,7 +37,7 @@
 
 struct started_server
 {
-    char            devicename[80];
+    char            devicename[256];
     struct started_server *next;
 };
 
-- 
1.5.2.5




More information about the ofw mailing list