projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
175b0db
)
Fix code reading from the pipe stream in exec sample.
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Fri, 24 Jun 2011 13:10:23 +0000
(13:10 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Fri, 24 Jun 2011 13:10:23 +0000
(13:10 +0000)
We must be reading bytes, not (wide) characters.
Closes #13290.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68036
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
samples/exec/exec.cpp
patch
|
blob
|
blame
|
history
diff --git
a/samples/exec/exec.cpp
b/samples/exec/exec.cpp
index 586b129719d0c11d1ebd7b4d18d58a8c750025f4..07aa3b0b3efc86b761d88eb9eb59196b4864baa5 100644
(file)
--- a/
samples/exec/exec.cpp
+++ b/
samples/exec/exec.cpp
@@
-1470,8
+1470,8
@@
void MyPipeFrame::DoGetFromStream(wxTextCtrl *text, wxInputStream& in)
{
while ( in.CanRead() )
{
-
wxC
har buffer[4096];
- buffer[in.Read(buffer, WXSIZEOF(buffer) - 1).LastRead()] =
wxT('\0')
;
+
c
har buffer[4096];
+ buffer[in.Read(buffer, WXSIZEOF(buffer) - 1).LastRead()] =
'\0'
;
text->AppendText(buffer);
}