projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not attempt to write 0 bytes.
[mono.git]
/
mcs
/
class
/
System
/
System.Net
/
ChunkStream.cs
diff --git
a/mcs/class/System/System.Net/ChunkStream.cs
b/mcs/class/System/System.Net/ChunkStream.cs
index 2c29b417c9cfb6bd1f3739016131a3b6e5221093..b3888fb1581c24f417e505c54c4423411b41c185 100644
(file)
--- a/
mcs/class/System/System.Net/ChunkStream.cs
+++ b/
mcs/class/System/System.Net/ChunkStream.cs
@@
-130,7
+130,8
@@
namespace System.Net
public void Write (byte [] buffer, int offset, int size)
{
- InternalWrite (buffer, ref offset, size);
+ if (offset < size)
+ InternalWrite (buffer, ref offset, size);
}
void InternalWrite (byte [] buffer, ref int offset, int size)