vfs: check userland buffers before reading them.
[haiku.git] / src / apps / charactermap / CharacterMap.cpp
blob6d5d843712b92e10b839857aa9017ce2123f9247
1 /*
2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "CharacterMap.h"
9 #include <stdlib.h>
11 #include <Application.h>
12 #include <Catalog.h>
14 #include "CharacterWindow.h"
16 #undef B_TRANSLATION_CONTEXT
17 #define B_TRANSLATION_CONTEXT "CharacterMap"
19 const char* kSignature = "application/x-vnd.Haiku-CharacterMap";
22 CharacterMap::CharacterMap()
23 : BApplication(kSignature)
28 CharacterMap::~CharacterMap()
33 void
34 CharacterMap::ReadyToRun()
36 fWindow = new CharacterWindow();
37 fWindow->Show();
41 void
42 CharacterMap::RefsReceived(BMessage* message)
44 fWindow->PostMessage(message);
48 void
49 CharacterMap::MessageReceived(BMessage* message)
51 BApplication::MessageReceived(message);
55 // #pragma mark -
58 int
59 main(int /*argc*/, char** /*argv*/)
61 CharacterMap app;
62 app.Run();
64 return 0;