aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-02 12:28:21 +0200
committerAlon Zakai <alonzakai@gmail.com>2011-10-02 12:28:21 +0200
commit53ee0dca393f6b7c4c0811a4a5b97e56f44083ce (patch)
treeaa758aa16dd36ed5c28928aabad6de1dcad03dbe /src
parent16fcbd5c4247c14beeb8d0447ac84666ac8e65f6 (diff)
fix typo in library; fixes dlfcn tests
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index d24ae1ed..b9da8b3c 100644
--- a/src/library.js
+++ b/src/library.js
@@ -2732,7 +2732,7 @@ LibraryManager.library = {
flags = {{{ cDefine('O_WRONLY') }}};
}
flags |= {{{ cDefine('O_CREAT') }}};
- flags |= {{{ cDefine('O_TRUNK') }}};
+ flags |= {{{ cDefine('O_TRUNC') }}};
} else if (mode[0] == 'a') {
if (mode.indexOf('+') != -1) {
flags = {{{ cDefine('O_RDWR') }}};