diff options
author | Simon Detheridge <simon@widgit.com> | 2015-03-06 14:51:54 +0000 |
---|---|---|
committer | Steven Murawski <steven.murawski@gmail.com> | 2015-03-11 20:08:51 +0000 |
commit | 66334d77a5903e889612c9709b11de4cd719bea3 (patch) | |
tree | 1a5250e2db95b0b3089d16e89483ba36e0b560ec | |
parent | 1112130eb05d7d824404ab530cd9407a1ef92995 (diff) | |
download | chef-66334d77a5903e889612c9709b11de4cd719bea3.tar.gz |
Remove trailing null character from msi properties
-rw-r--r-- | lib/chef/win32/api/installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/win32/api/installer.rb b/lib/chef/win32/api/installer.rb index 745802d260..6864a26e7d 100644 --- a/lib/chef/win32/api/installer.rb +++ b/lib/chef/win32/api/installer.rb @@ -108,7 +108,7 @@ UINT MsiCloseHandle( end msi_close_handle(pkg_ptr.read_pointer) - return buffer + return buffer.chomp(0.chr) end # Opens a Microsoft Installer (MSI) file from an absolute path and returns a pointer to a handle |