summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/fsmount/fsmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/fsmount/fsmount.c')
-rw-r--r--cpukit/libmisc/fsmount/fsmount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libmisc/fsmount/fsmount.c b/cpukit/libmisc/fsmount/fsmount.c
index 506c44aeb1..6e9ba263a7 100644
--- a/cpukit/libmisc/fsmount/fsmount.c
+++ b/cpukit/libmisc/fsmount/fsmount.c
@@ -76,7 +76,8 @@ int rtems_fsmount_create_mount_point
/*
* scan through given string, one segment at a time
*/
- token_type = IMFS_get_token(mount_point+total_len,token,&token_len);
+ token_type = IMFS_get_token(mount_point+total_len,strlen(mount_point+total_len),
+ token,&token_len);
total_len += token_len;
strncpy(tok_buffer,mount_point,total_len);
tok_buffer[total_len] = '\0';