aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/unix
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-12-17 15:32:53 +0100
committerPatrik Nyblom <[email protected]>2010-12-17 15:32:53 +0100
commit4a27e3d65e76fb0b9e516b6f48cf344098531843 (patch)
tree793d87288474220a9822c29625a81a8749289755 /erts/emulator/drivers/unix
parent1b5f4da2d59f3d42a5e7bb1f7aa1d65436bc2ef5 (diff)
downloadotp-4a27e3d65e76fb0b9e516b6f48cf344098531843.tar.gz
otp-4a27e3d65e76fb0b9e516b6f48cf344098531843.tar.bz2
otp-4a27e3d65e76fb0b9e516b6f48cf344098531843.zip
Correct usage of pointer-to-size in unix_efile
Diffstat (limited to 'erts/emulator/drivers/unix')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 6297ccb8bc..4b3934657c 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -620,7 +620,7 @@ efile_readdir(Efile_error* errInfo, /* Where to return error codes. */
if (IS_DOT_OR_DOTDOT(dirp->d_name))
continue;
buffer[0] = '\0';
- strncat(buffer, dirp->d_name, size-1);
+ strncat(buffer, dirp->d_name, (*size)-1);
*size = strlen(dirp->d_name);
return 1;
}