author | Laurent Bessard |
Tue, 07 May 2013 12:27:35 +0200 | |
changeset 49 | f340728940f6 |
parent 48 | 76056645f265 |
child 50 | ed1f9752f929 |
--- a/LPCconnector/LPCAppObject.py Mon May 06 16:32:27 2013 +0200 +++ b/LPCconnector/LPCAppObject.py Tue May 07 12:27:35 2013 +0200 @@ -76,7 +76,7 @@ if force !=None: c_type,unpack_func, pack_func = TypeTranslator.get(iectype, (None,None,None)) forced_type_size = ctypes.sizeof(c_type) \ - if iectype != "STRING" else len(force[-1])+1 + if iectype != "STRING" else len(force)+1 forced_type_size_str = chr(forced_type_size) forcestr = ctypes.string_at( ctypes.pointer(