projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils: fix typo in strndup fallback
[platform/upstream/libxkbcommon.git]
/
src
/
utils.h
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;
}