So i have an structure, let's say it's name is Foo and it's size is 0xAC size and it's initializated in a function like this:

Foo foo;
qmemcpy(&foo, &g_Foo, 0xAC);

How i can change the last argument to be sizeof(Foo)?

closed as unclear what you're asking by perror, 0xec, jvoisin, peter ferrie, Vitaly Osipov Sep 19 '16 at 9:04

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    sizeof is a compile time operator. – 0xec Sep 13 '16 at 15:18
  • Where exactly do you want to change it ? – w s Sep 13 '16 at 16:34

Click on the 0xAC, then type t (or right click → Structure Offset). Choose the Foo structure and click "OK".

Not the answer you're looking for? Browse other questions tagged or ask your own question.