summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/libjs/encoder.js2
-rw-r--r--swat/scripting/client/encoder.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/libjs/encoder.js b/source4/scripting/libjs/encoder.js
index 24508f3f6b1..d96b8595470 100644
--- a/source4/scripting/libjs/encoder.js
+++ b/source4/scripting/libjs/encoder.js
@@ -52,6 +52,8 @@ function encodeElement(e, name) {
r = s.sprintf("%s:%s:%s:", name, t, "" + e);
} else if (t == "undefined" || t == "null") {
r = s.sprintf("%s:%s:", name, t);
+ } else if (t == "pointer") {
+ r = s.sprintf("%s:string:(POINTER):", name);
} else {
println("Unable to linearise type " + t);
r = "";
diff --git a/swat/scripting/client/encoder.js b/swat/scripting/client/encoder.js
index 2b1db669d28..4aa4cc09547 100644
--- a/swat/scripting/client/encoder.js
+++ b/swat/scripting/client/encoder.js
@@ -71,7 +71,7 @@ function decodeObjectArray(a) {
value = a[a.i]; a.i++;
o[name] = value * 1;
} else {
- alert("Unable to delinearise type " + t);
+ alert("Unable to delinearise type " + type);
}
}
return o;