Re: Question about the C++ backtrace
Re: Question about the C++ backtrace
- Subject: Re: Question about the C++ backtrace
- From: Fritz Anderson <email@hidden>
- Date: Tue, 29 Nov 2011 07:27:00 -0600
On 28 Nov 2011, at 7:39 PM, William Squires wrote: int offset = 0; sscanf(strs[i], "%*d %s %*s %s %*s %d", &moduleName, &functionSymbol, &offset);
This should give a booboo - You have 6 % specifiers, but only three arguments being passed to conform. This'll almost assuredly screw the pooch (stack pointer)!
I wondered about that myself, but before saying anything, I typed "man sscanf" in a Terminal window.
* specifiers skip inputs.
β F
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden