Skip to content

Commit

Permalink
%p is only meant for pointers, use %x for hex (radareorg#34)
Browse files Browse the repository at this point in the history
and fix initialization order while at it
  • Loading branch information
SiebelsTim authored and xarkes committed Oct 2, 2017
1 parent bafad96 commit 2ba3d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/widgets/CodeGraphic.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public slots:
void fillData();

private:
MainWindow *main;
QGraphicsView *codeGraphic;
MainWindow *main;
};

#endif // GRAPHICSBAR_H
2 changes: 1 addition & 1 deletion src/widgets/DisassemblerGraphView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void DisassemblerGraphView::copy_address()
QClipboard* clipboard = QApplication::clipboard();
clipboard->clear();
QMimeData mime;
mime.setText(QString().sprintf("0x%p", this->get_cursor_pos()));
mime.setText(QString().sprintf("0x%llx", this->get_cursor_pos()));
clipboard->setMimeData(&mime);
}

Expand Down

0 comments on commit 2ba3d92

Please sign in to comment.