Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ValekoZ committed Sep 27, 2024
1 parent 2ef7ed8 commit 7d09256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -10750,9 +10750,9 @@ def read_cstring(self,
res_bytes += self.read(current_address, size)

current_address += size
except:
except gdb.error:
if not res_bytes:
err(f"Can't read memory at '{address}'")
err(f"Can't read memory at '{address:#x}'")
return ""
break
try:
Expand Down

0 comments on commit 7d09256

Please sign in to comment.