Skip to content
Snippets Groups Projects
Commit 22f32adb authored by Niels Möller's avatar Niels Möller
Browse files

* Requests.pmod (GetProperty): Bug fixes.

Rev: lib/modules/Protocols.pmod/X.pmod/Requests.pmod:1.11
parent b9f5361f
No related branches found
No related tags found
No related merge requests found
...@@ -308,12 +308,12 @@ class GetProperty ...@@ -308,12 +308,12 @@ class GetProperty
int window; int window;
int property; int property;
int type; int type;
int longOffset; int longOffset = 0;
int longLength; int longLength = 1024;
string to_string() string to_string()
{ {
return build_request(sprintf("%4c%4c%4c" "4c%4c", return build_request(sprintf("%4c%4c%4c" "%4c%4c",
window, property, type, window, property, type,
longOffset, longLength), longOffset, longLength),
delete); delete);
...@@ -342,7 +342,7 @@ class GetProperty ...@@ -342,7 +342,7 @@ class GetProperty
{ {
m->data = allocate(length); m->data = allocate(length);
for (int i = 0; i<length; i++) for (int i = 0; i<length; i++)
sscanf(reply->rest[24+4*i..27+2*i], "%4c", m->data[i]); sscanf(reply->rest[24+4*i..27+4*i], "%4c", m->data[i]);
break; break;
} }
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment