diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-02-18 14:47:01 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-02-18 20:42:54 +0100 |
| commit | a2e461cc51a25ccc98e0de43ca87374edce412b4 (patch) | |
| tree | c583f3d8d864b81abcfb56ceda173aa5c23c5718 /miasm2/os_dep/linux_stdlib.py | |
| parent | d2cc082ba50397609e186d516b75226d638841d3 (diff) | |
| download | miasm-a2e461cc51a25ccc98e0de43ca87374edce412b4.tar.gz miasm-a2e461cc51a25ccc98e0de43ca87374edce412b4.zip | |
PyLint: Remove keyword redefinition, bad open mode
Diffstat (limited to 'miasm2/os_dep/linux_stdlib.py')
| -rw-r--r-- | miasm2/os_dep/linux_stdlib.py | 12 |
1 files changed, 6 insertions, 6 deletions
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) |