aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-20 02:59:16 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-20 02:59:16 +0000
commit5d8cdd9bea07acd276b260b34bea299a45a9088a (patch)
tree5a6d883cd12ea59d4e36f54654d7b96d3b99930d /Demos/Host/LowLevel/StillImageHost/StillImageHost.c
parent8a68203d3451c50c573c6baf4850e72d8dbabfcb (diff)
downloadlufa-5d8cdd9bea07acd276b260b34bea299a45a9088a.tar.gz
lufa-5d8cdd9bea07acd276b260b34bea299a45a9088a.tar.bz2
lufa-5d8cdd9bea07acd276b260b34bea299a45a9088a.zip
Fix unfinished printer host demo - some printer languages use embedded NULLs and so strlen() won't work in all cases. Ensure NULL terminator for the test page is not transmitted to the device.
Diffstat (limited to 'Demos/Host/LowLevel/StillImageHost/StillImageHost.c')
-rw-r--r--Demos/Host/LowLevel/StillImageHost/StillImageHost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Host/LowLevel/StillImageHost/StillImageHost.c b/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
index dfc7cb7c1..5cfaf46be 100644
--- a/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
+++ b/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
@@ -352,7 +352,7 @@ void UnicodeToASCII(uint8_t* UnicodeString, char* Buffer)
/* Loop through the entire unicode string */
while (CharactersRemaining--)
{
- /* Load in the next unicode character (only the lower byte, only Unicode coded ASCII supported) */
+ /* Load in the next unicode character (only the lower byte, as only Unicode coded ASCII is supported) */
*(Buffer++) = *UnicodeString;
/* Jump to the next unicode character */