From 76b6d84a86f545cd67799c531c12317c652945af Mon Sep 17 00:00:00 2001 From: Jason Watkins Date: Tue, 8 Sep 2015 12:40:46 -0700 Subject: [PATCH] Quick fix to C example. --- C/xpcExample/xpcExample/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/xpcExample/xpcExample/src/main.cpp b/C/xpcExample/xpcExample/src/main.cpp index 5792368..e9e645a 100644 --- a/C/xpcExample/xpcExample/src/main.cpp +++ b/C/xpcExample/xpcExample/src/main.cpp @@ -24,7 +24,7 @@ int main() const char* IP = "127.0.0.1"; //IP Address of computer running X-Plane XPCSocket sock = openUDP(IP); float tVal[1]; - int tSize; + int tSize = 1; if (getDREF(sock, "sim/test/test_float", tVal, &tSize) < 0) { printf("Error establishing connecting. Unable to read data from X-Plane.");