diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-09 23:45:18 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-09 23:45:18 -0800 |
commit | 700d6ad071614895c3cb305b894b8c1a003db39e (patch) | |
tree | 8ebefd3bd2f3e06aa7662ee98bef07352fe969b5 /clients/window.h | |
parent | a548b4b85cfdbef103f622c3e3aaf976938535f9 (diff) | |
download | weston-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.h | 2 |
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[]); |