projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update trunk documentation for new LUFA release.
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
RNDISEthernet
/
Lib
/
Webserver.c
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
b/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
index
6106bd5
..
019329e
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
0
.
+ Copyright (C) Dean Camera, 201
1
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
0
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-181,7
+181,7
@@
void Webserver_ApplicationCallback(TCP_ConnectionState_t* const ConnectionState,
uint16_t Length;
/* Determine the length of the loaded block */
uint16_t Length;
/* Determine the length of the loaded block */
- Length =
((RemLength > HTTP_REPLY_BLOCK_SIZE) ? HTTP_REPLY_BLOCK_SIZE : RemLength
);
+ Length =
MIN(RemLength, HTTP_REPLY_BLOCK_SIZE
);
/* Copy the next buffer sized block of the page to the packet buffer */
strncpy_P(BufferDataStr, &HTTPPage[PageBlock * HTTP_REPLY_BLOCK_SIZE], Length);
/* Copy the next buffer sized block of the page to the packet buffer */
strncpy_P(BufferDataStr, &HTTPPage[PageBlock * HTTP_REPLY_BLOCK_SIZE], Length);