mirror of
https://github.com/pocoproject/poco.git
synced 2026-01-11 08:34:20 +01:00
sync to internal repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ASCIIEncoding.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Foundation/src/ASCIIEncoding.cpp#1 $
|
||||
// $Id: //poco/Main/Foundation/src/ASCIIEncoding.cpp#11 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Text
|
||||
@@ -87,7 +87,8 @@ int ASCIIEncoding::convert(int ch, unsigned char* bytes, int length) const
|
||||
{
|
||||
if (ch >= 0 && ch <= 127)
|
||||
{
|
||||
*bytes = (unsigned char) ch;
|
||||
if (bytes && length >= 1)
|
||||
*bytes = (unsigned char) ch;
|
||||
return 1;
|
||||
}
|
||||
else return 0;
|
||||
|
||||
Reference in New Issue
Block a user