summaryrefslogtreecommitdiff
path: root/clients/window.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2014-01-09 23:45:18 -0800
committerKristian Høgsberg <krh@bitplanet.net>2014-01-09 23:45:18 -0800
commit700d6ad071614895c3cb305b894b8c1a003db39e (patch)
tree8ebefd3bd2f3e06aa7662ee98bef07352fe969b5 /clients/window.h
parenta548b4b85cfdbef103f622c3e3aaf976938535f9 (diff)
downloadweston-700d6ad071614895c3cb305b894b8c1a003db39e.tar.gz
keyboard: Don't strcat() into a strdup()ed string
We need to reallocate the memory to hold the entire concatenated string, but strcat() doesn't do that. Closes: https://bugs.freedesktop.org/show_bug.cgi?id=71750
Diffstat (limited to 'clients/window.h')
-rw-r--r--clients/window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/window.h b/clients/window.h
index 8bf9adc1..dec133fc 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -61,6 +61,8 @@ void *
xzalloc(size_t s);
char *
xstrdup(const char *s);
+void *
+xrealloc(char *p, size_t s);
struct display *
display_create(int *argc, char *argv[]);