From 2bb8732efc7ce81c5eb3ebab9481c836b3d6476d Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 10 Feb 2017 14:53:34 -0500 Subject: [PATCH] Fix typo --- pwndbg/commands/nearpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwndbg/commands/nearpc.py b/pwndbg/commands/nearpc.py index 9235ce925..ac12ab2f5 100644 --- a/pwndbg/commands/nearpc.py +++ b/pwndbg/commands/nearpc.py @@ -57,8 +57,8 @@ def nearpc(pc=None, lines=None, to_string=False, emulate=False): lines = int(lines) # Check whether we can even read this address - if not pwndbg.memory.peek(address): - return [pwndbg.color.red('Invalid address %#x' % address)] + if not pwndbg.memory.peek(pc): + return [pwndbg.color.red('Invalid address %#x' % pc)] # # Load source data if it's available # pc_to_linenos = collections.defaultdict(lambda: [])