Fixed GetEnvironmentStrings test
authorArmin Novak <armin.novak@thincast.com>
Thu, 21 Nov 2019 09:33:45 +0000 (10:33 +0100)
committerArmin Novak <armin.novak@thincast.com>
Thu, 21 Nov 2019 14:05:57 +0000 (15:05 +0100)
commit53f7d023b1e6ec9dfb84e089b49f9fc0bb3d78d5
treeed832f14fd25de25bc1ab135c6716b96f0a04379
parent67dc2e0bdb727ac6d9c34252815a8a6f022ea0b0
Fixed GetEnvironmentStrings test

Some os return an invalid/wrong character count if a string with
unknown symbols is printed to stdout.
Instead use the sprintf family and print to a buffer / determine
the required buffer size.
winpr/include/winpr/tchar.h
winpr/libwinpr/environment/test/TestEnvironmentGetEnvironmentStrings.c