diff options
author | Richard Barry <ribarry@amazon.com> | 2018-02-26 21:22:44 +0000 |
---|---|---|
committer | Richard Barry <ribarry@amazon.com> | 2018-02-26 21:22:44 +0000 |
commit | 9ed3a9fe186ecaf46668d1c3297b5ecd904c369f (patch) | |
tree | db73609abadb400c26e2d498cd7bcfc9c350c0a8 /FreeRTOS-Plus/Demo | |
parent | ff74e7aa632b7771e46d0015c7e52c8d266392e3 (diff) | |
download | freertos-git-9ed3a9fe186ecaf46668d1c3297b5ecd904c369f.tar.gz |
Fix buffer clean up in \FreeRTOS_Plus_TCP_Minimal_Windows_Simulator\demo_logging.c.
Update queue code to allow an overwrite operation on a queue that is in a queue set, and add prvTestQueueOverwriteWithQueueSet() to test function.
Update Eclipse Win32 project to bring it closer the the Visual Studio equivalent.
Diffstat (limited to 'FreeRTOS-Plus/Demo')
-rw-r--r-- | FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/demo_logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/demo_logging.c b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/demo_logging.c index 447aeef36..41cd548ea 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/demo_logging.c +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/demo_logging.c @@ -296,8 +296,8 @@ HANDLE xCurrentTask; if( xLength2 < 0 )
{
/* Clean up. */
- xLength2 = sizeof( cPrintString ) - 1 - xLength;
- cPrintString[ sizeof( cPrintString ) - 1 ] = '\0';
+ xLength2 = dlMAX_PRINT_STRING_LENGTH - 1 - xLength;
+ cPrintString[ dlMAX_PRINT_STRING_LENGTH - 1 ] = '\0';
}
xLength += xLength2;
|