diff --git a/chrome/content/zotero/xpcom/integration_worker.js b/chrome/content/zotero/xpcom/integration_worker.js index 51f10f4d7..69253c5ef 100644 --- a/chrome/content/zotero/xpcom/integration_worker.js +++ b/chrome/content/zotero/xpcom/integration_worker.js @@ -49,7 +49,7 @@ onmessage = function(event) { var fd = open(path, 0); // read from fifo and close it - read(fd, buf, BUFFER_SIZE); + read(fd, buf, BUFFER_SIZE-1); close(fd); // extract message