about summary refs log tree commit diff stats
path: root/miasm2/os_dep/linux_stdlib.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-25 23:23:10 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-29 14:45:24 +0200
commit26c837627db7eb0a2e5e9e4c349c9b85bd386545 (patch)
treef6dc9da62785e7af07ba5e7df7ab478d2d21e2f1 /miasm2/os_dep/linux_stdlib.py
parenteefe15ed5b70bcea4bd5cb6eeefd458439e4eef8 (diff)
downloadmiasm-26c837627db7eb0a2e5e9e4c349c9b85bd386545.tar.gz
miasm-26c837627db7eb0a2e5e9e4c349c9b85bd386545.zip
Os_dep: fix get/set str
Diffstat (limited to 'miasm2/os_dep/linux_stdlib.py')
-rw-r--r--miasm2/os_dep/linux_stdlib.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/miasm2/os_dep/linux_stdlib.py b/miasm2/os_dep/linux_stdlib.py
index ec814864..542af25f 100644
--- a/miasm2/os_dep/linux_stdlib.py
+++ b/miasm2/os_dep/linux_stdlib.py
@@ -4,8 +4,7 @@
 from sys import stdout
 from string import printable
 
-from miasm2.os_dep.common import \
-    heap, set_str_ansi, set_str_unic, get_str_ansi, get_str_unic
+from miasm2.os_dep.common import heap
 
 
 class c_linobjs(object):
@@ -155,13 +154,13 @@ def xxx_free(jitter):
 
 def xxx_strcmp(jitter):
     ret_ad, args = jitter.func_args_stdcall(["ptr_str1", "ptr_str2"])
-    s1 = get_str_ansi(jitter, args.ptr_str1)
-    s2 = get_str_ansi(jitter, args.ptr_str2)
+    s1 = jitter.get_str_ansi(args.ptr_str1)
+    s2 = jitter.get_str_ansi(args.ptr_str2)
     jitter.func_ret_stdcall(ret_ad, cmp(s1, s2))
 
 
 def xxx_strncmp(jitter):
     ret_ad, args = jitter.func_args_stdcall(["ptr_str1", "ptr_str2", "size"])
-    s1 = get_str_ansi(jitter, args.ptr_str1, args.size)
-    s2 = get_str_ansi(jitter, args.ptr_str2, args.size)
+    s1 = jitter.get_str_ansi(args.ptr_str1, args.size)
+    s2 = jitter.get_str_ansi(args.ptr_str2, args.size)
     jitter.func_ret_stdcall(ret_ad, cmp(s1, s2))