stack around the variable…was corrupted
Why did you declare you character buffer a size of 20? More than likely the sprintf placed more characters than that can fit in myChar. Instead, use safer constructs such as std::ostringstream or at the very least, declare you char arrays much bigger than you would expect (not the best way, but would at least … Read more