vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / translators / icns / main.cpp
blob2d11692e8967161a3eb75aef019a6b1d31fde145
1 /*
2 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Copyright 2012, Gerasim Troeglazov, 3dEyes@gmail.com. All rights reserved.
4 * Distributed under the terms of the MIT License.
5 */
7 #include <Application.h>
9 #include "ICNSTranslator.h"
10 #include "TranslatorWindow.h"
12 int
13 main(int /*argc*/, char ** /*argv*/)
15 BApplication app("application/x-vnd.Haiku-ICNSTranslator");
17 status_t result;
18 result = LaunchTranslatorWindow(new ICNSTranslator,
19 "ICNS Settings", BRect(0, 0, 320, 200));
20 if (result != B_OK)
21 return 1;
23 app.Run();
24 return 0;