vfs: check userland buffers before reading them.
[haiku.git] / src / apps / clock / clock.cpp
blobec17cf6f11fca0b3b4de407047326b8d5c36aaaf
1 /*
2 * Copyright 1999, Be Incorporated. All Rights Reserved.
3 * Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
4 * This file may be used under the terms of the Be Sample Code License.
6 */
9 #include <Application.h>
10 #include <Catalog.h>
12 #include "cl_wind.h"
15 const char* kAppSignature = "application/x-vnd.Haiku-Clock";
18 int
19 main(int argc, char* argv[])
21 BApplication app(kAppSignature);
23 BWindow* clockWindow = new TClockWindow(BRect(100, 100, 182, 182),
24 B_TRANSLATE_SYSTEM_NAME("Clock"));
25 clockWindow->Show();
27 app.Run();
29 return 0;