vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / translators / ico / main.cpp
blob4044bbec8be871df1ee67d11e3da72b555df7af9
1 /*
2 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <Application.h>
8 #include <Catalog.h>
10 #include "ICOTranslator.h"
11 #include "ICO.h"
12 #include "TranslatorWindow.h"
14 #undef B_TRANSLATION_CONTEXT
15 #define B_TRANSLATION_CONTEXT "main"
17 int
18 main(int /*argc*/, char ** /*argv*/)
20 BApplication app("application/x-vnd.Haiku-ICOTranslator");
22 status_t result;
23 result = LaunchTranslatorWindow(new ICOTranslator,
24 B_TRANSLATE("ICO Settings"), BRect(0, 0, 225, 175));
25 if (result != B_OK)
26 return 1;
28 app.Run();
29 return 0;