Ticket #20074

cNamedPipeIo.cppのデバッグ出力にゴミが出る

Open Date: 2010-01-02 01:02 Last Update: 2010-02-06 21:04

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
1 - Lowest
Resolution:
Fixed
File:
None

Details

cNamedPipeIo.cppのstatic bool debug = false;trueに変えてからpipesampleのシミュレーションを行うと、シミュレータ側から送られてきた文字列が標準エラー出力に表示される。

このとき、文字列の最後に不正な文字が出てくる。

\0で終端されていないバッファをそのままstd::cerrに出しているのがその原因である。

Ticket History (2/2 Histories)

2010-01-02 01:02 Updated by: molelord
  • New Ticket "cNamedPipeIo.cppのデバッグ出力にゴミが出る" created
2010-02-06 21:04 Updated by: molelord
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2010-02-06 21:04
Comment

r146で対策した。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login