blob: 5cedde9ee0f1376bb03a0ea41610fca27705f71f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/OBPager.cc.orig 2014-02-14 15:35:01.000000000 +0100
+++ src/OBPager.cc 2014-02-14 15:39:12.000000000 +0100
@@ -159,7 +159,7 @@
* @param displayName is the name of the display to connect to
*/
-void OBPager::connectToXServer(char *displayName)
+void OBPager::connectToXServer(const char *displayName)
{
// Connect to the user-specified desktop or whatever is in $DISPLAY?
@@ -301,7 +301,7 @@
int maxHeight = height;
int minWidth = width;
int minHeight = height;
- char* appName = APPLET_NAME;
+ char appName[] = APPLET_NAME;
unsigned long borderColour = BlackPixel(mDisplay(), mScreenNum);
unsigned long backgroundColour = BlackPixel(mDisplay(), mScreenNum);
|