Skip to contentSkip to conversation

simfilesystem: correct sw2 response for binary read

PATCH In review Kristen Carlson Accardi 2 participants 2 messages Aug 18, 2010 – Aug 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 simfilesystem: correct sw2 response for binary read

according to spec, sw2 should be the number of bytes read, which is just length.

---
 src/simfilesystem.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/simfilesystem.cpp +1 -1
index d193328..6e05039 100644
@@ -226,7 +226,7 @@ void SimFileSystem::crsm( const QString& args )
                     sw2 = 0x02;
                 } else if ( length ) {
                     sw1 = 0x9f;
-                    sw2 = length - offset;
+                    sw2 = length;
                     response =
                         QAtUtils::toHex( contents.mid( offset, length ) );
                 } else {
Signature · 1 line
1.7.2.1
#1 lore raw

Hi Kristen,

Quoted 3 lines · Kristen Carlson Accardi

according to spec, sw2 should be the number of bytes read, which is just length.
---

Patch has been applied, thanks.

Regards,
-Denis