From 26b4c54975c0a7c50a246a463119c8a523cabe2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 26 Dec 2013 00:20:28 +0100 Subject: [PATCH] Icon-O-Matic: sprintf -> snprintf --- src/apps/icon-o-matic/document/savers/BitmapSetSaver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/icon-o-matic/document/savers/BitmapSetSaver.cpp b/src/apps/icon-o-matic/document/savers/BitmapSetSaver.cpp index ed6be4d25a..9d94323cce 100644 --- a/src/apps/icon-o-matic/document/savers/BitmapSetSaver.cpp +++ b/src/apps/icon-o-matic/document/savers/BitmapSetSaver.cpp @@ -31,21 +31,21 @@ BitmapSetSaver::Save(Document* document) char name[B_OS_NAME_LENGTH]; // 64x64 - sprintf(name, "%s_64.png", fRef.name); + snprintf(name, sizeof(name), "%s_64.png", fRef.name); actualRef.set_name(name); Exporter* exporter = new BitmapExporter(64); exporter->SetSelfDestroy(true); exporter->Export(document, actualRef); // 16x16 - sprintf(name, "%s_16.png", fRef.name); + snprintf(name, sizeof(name), "%s_16.png", fRef.name); actualRef.set_name(name); exporter = new BitmapExporter(16); exporter->SetSelfDestroy(true); exporter->Export(document, actualRef); // 32x32 - sprintf(name, "%s_32.png", fRef.name); + snprintf(name, sizeof(name), "%s_32.png", fRef.name); actualRef.set_name(name); exporter = new BitmapExporter(32); exporter->SetSelfDestroy(true);