summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wayland-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 03c087a..3d7361e 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -1006,7 +1006,7 @@ wl_display_connect(const char *name)
if (connection) {
int prev_errno = errno;
errno = 0;
- fd = strtol(connection, &end, 0);
+ fd = strtol(connection, &end, 10);
if (errno != 0 || connection == end || *end != '\0')
return NULL;
errno = prev_errno;