about summary refs log tree commit diff homepage
path: root/test/Runtime
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2019-08-13 20:28:51 +0100
committerMartinNowack <martin.nowack@gmail.com>2019-08-14 16:26:48 +0100
commitdc414fde33f3ec22a6ae3cf29cfc6bc4a9ddae1a (patch)
tree56c1467c47fd45bdc2e3bad46b9b82b4186d4b8f /test/Runtime
parent8426b2913e650970d46be9a4d088bf3945f41453 (diff)
downloadklee-dc414fde33f3ec22a6ae3cf29cfc6bc4a9ddae1a.tar.gz
Replace sprintf with snprintf throughout codebase
Diffstat (limited to 'test/Runtime')
-rw-r--r--test/Runtime/POSIX/DirConsistency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Runtime/POSIX/DirConsistency.c b/test/Runtime/POSIX/DirConsistency.c
index fa5c5314..688e11c1 100644
--- a/test/Runtime/POSIX/DirConsistency.c
+++ b/test/Runtime/POSIX/DirConsistency.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv) {
 
   // Ensure atomic write
   char buf[64];
-  sprintf(buf, "COUNT: %d\n", count);
+  snprintf(buf, sizeof(buf), "COUNT: %d\n", count);
   fputs(buf, stdout);
   assert(hasA == foundA);