projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d59ff39
)
utils: fix typo in strndup fallback
author
Ran Benita
<ran@unusedvar.com>
Fri, 27 Dec 2019 11:52:51 +0000
(13:52 +0200)
committer
Ran Benita
<ran@unusedvar.com>
Fri, 27 Dec 2019 11:52:51 +0000
(13:52 +0200)
Fixup 93a1305 - we will have CI for this soon.
Signed-off-by: Ran Benita <ran@unusedvar.com>
src/utils.h
patch
|
blob
|
history
diff --git
a/src/utils.h
b/src/utils.h
index
acd191e
..
920db4c
100644
(file)
--- a/
src/utils.h
+++ b/
src/utils.h
@@
-119,7
+119,7
@@
strndup(const char *s, size_t n)
char *p = malloc(len + 1);
if (!p)
return NULL;
- memcpy(p, s
tr
, len);
+ memcpy(p, s, len);
p[len] = '\0';
return p;
}