Files
pkgsrc-ng/sysutils/xentools46/patches/patch-ocaml_xenstored_utils.ml
2016-11-18 22:39:22 +01:00

14 lines
506 B
OCaml

$NetBSD: patch-ocaml_xenstored_utils.ml,v 1.1.1.1 2016/07/04 07:30:52 jnemeth Exp $
--- ocaml/xenstored/utils.ml.orig 2015-01-12 17:53:24.000000000 +0100
+++ ocaml/xenstored/utils.ml 2015-01-19 13:16:38.000000000 +0100
@@ -94,7 +94,7 @@
let buf = String.make 20 (char_of_int 0) in
let sz = Unix.read fd buf 0 20 in
Unix.close fd;
- int_of_string (String.sub buf 0 sz)
+ int_of_string (String.trim (String.sub buf 0 sz))
let path_complete path connection_path =
if String.get path 0 <> '/' then