From a2e461cc51a25ccc98e0de43ca87374edce412b4 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Wed, 18 Feb 2015 14:47:01 +0100 Subject: PyLint: Remove keyword redefinition, bad open mode --- miasm2/os_dep/linux_stdlib.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'miasm2/os_dep/linux_stdlib.py') diff --git a/miasm2/os_dep/linux_stdlib.py b/miasm2/os_dep/linux_stdlib.py index 9dbc6c60..57424995 100644 --- a/miasm2/os_dep/linux_stdlib.py +++ b/miasm2/os_dep/linux_stdlib.py @@ -54,18 +54,18 @@ def xxx_snprintf(jitter): writes to string str according to format format and at most size bytes. ''' - ret_addr, (str, size, format) = jitter.func_args_stdcall(3) + ret_addr, (string, size, fmt) = jitter.func_args_stdcall(3) curarg, output = 3, '' while True: - c = jitter.vm.get_mem(format, 1) - format += 1 + c = jitter.vm.get_mem(fmt, 1) + fmt += 1 if c == '\x00': break if c == '%': token = '%' while True: - c = jitter.vm.get_mem(format, 1) - format += 1 + c = jitter.vm.get_mem(fmt, 1) + fmt += 1 token += c if c in '%cdfsux': break @@ -74,5 +74,5 @@ def xxx_snprintf(jitter): output += c output = output[:size - 1] ret = len(output) - jitter.vm.set_mem(str, output + '\x00') + jitter.vm.set_mem(string, output + '\x00') return jitter.func_ret_stdcall(ret_addr, ret) -- cgit 1.4.1