commit | 605d7ae18d6e33b5dc1f6bb813ae32781498a4cd | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Mon Feb 29 13:39:17 2016 -0800 |
committer | George Burgess <gbiv@google.com> | Wed Mar 02 22:42:22 2016 +0000 |
tree | cb5ced21660ab36e96e9319b66e51d2394a2b066 | |
parent | ed4800064ca7e521a0b85b02125732860daf9a2f [diff] [blame] |
Cleanup uses of sprintf, add modes to open() with O_CREAT. Change-Id: Iaed2538831b19ada26005bbef33cff28209c6512
diff --git a/fs/Vfat.cpp b/fs/Vfat.cpp index 38681c9..1803c4b 100644 --- a/fs/Vfat.cpp +++ b/fs/Vfat.cpp
@@ -139,7 +139,7 @@ flags |= (ro ? MS_RDONLY : 0); flags |= (remount ? MS_REMOUNT : 0); - sprintf(mountData, + snprintf(mountData, sizeof(mountData), "utf8,uid=%d,gid=%d,fmask=%o,dmask=%o,shortname=mixed", ownerUid, ownerGid, permMask, permMask);