From 38d15aac62a521e05fb4ac9fad98e4583740e3a2 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Fri, 22 Apr 2011 07:56:37 +0000
Subject: [PATCH] bug 1362: sprintf -> snprintf

---
 MAC/APL/PIC/TBB_Driver/src/tbbctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MAC/APL/PIC/TBB_Driver/src/tbbctl.h b/MAC/APL/PIC/TBB_Driver/src/tbbctl.h
index a200aed09f8..8e76fe2fed1 100644
--- a/MAC/APL/PIC/TBB_Driver/src/tbbctl.h
+++ b/MAC/APL/PIC/TBB_Driver/src/tbbctl.h
@@ -184,7 +184,7 @@ public:
 		
 		if (str.empty() && status) {
 			char statusstr[64];
-			sprintf(statusstr,"unknown ERROR, 0x%08X",status);
+			snprintf(statusstr,sizeof statusstr,"unknown ERROR, 0x%08X",status);
 			str.append(statusstr);
 		}
 		return(str);
-- 
GitLab