??? 05/11/08 14:33 Modified: 05/11/08 14:37 Read: times |
#154681 - Yet another problem Responding to: ???'s previous message |
The FixMsg[] array is exactly long enough to contain the string " Elapsed Time :", plus one more byte for the terminating null. When strcat() is called, it's going to create a longer string that will no longer fit in the array. That will wipe out whatever follows the FixMsg[] array in memory. From that point on, all bets are off because the memory has been corrupted in some unknown way.
-- Russ |
Topic | Author | Date |
LCD message format with strcat | 01/01/70 00:00 | |
Pointers in 8051 | 01/01/70 00:00 | |
Managed pointers.... | 01/01/70 00:00 | |
Hmmm.... | 01/01/70 00:00 | |
Ha Ha Ha.... | 01/01/70 00:00 | |
Hmmm, indeed | 01/01/70 00:00 | |
MK is right about the italics.. | 01/01/70 00:00 | |
You (and MK) are right! | 01/01/70 00:00 | |
Another Problem You Have... | 01/01/70 00:00 | |
I actually did not want a sprintf .. | 01/01/70 00:00 | |
Converting integers to strings | 01/01/70 00:00 | |
Getting better but not there still | 01/01/70 00:00 | |
Yet another problem | 01/01/70 00:00 | |
But I am concenating into DispMsg. | 01/01/70 00:00 | |
No you're not ???![]() | 01/01/70 00:00 |