Careful with sscanf and fscanf

If you are not careful while using sscanf and fscanf, you code could lead to stack corruption errors leading to application crash. Recently when migrating a project in VC6 to VC8, a similar situation arose, I was getting stack corruption errors… “Run-Time Check Failure #2 – Stack around the variable ‘ByteVar’ was corrupted.” So I […]
Continue reading…