projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e683212
)
machine-id-setup: fix array size of parameters
author
Lennart Poettering
<lennart@poettering.net>
Tue, 10 Jun 2014 17:15:06 +0000
(19:15 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 10 Jun 2014 17:19:35 +0000
(19:19 +0200)
Not that it really would have any effect on the generated code, but
let's not confuse people...
src/core/machine-id-setup.c
patch
|
blob
|
history
diff --git
a/src/core/machine-id-setup.c
b/src/core/machine-id-setup.c
index
2a58e48
..
3efcd5f
100644
(file)
--- a/
src/core/machine-id-setup.c
+++ b/
src/core/machine-id-setup.c
@@
-38,7
+38,7
@@
#include "fileio.h"
#include "path-util.h"
-static int shorten_uuid(char destination[3
6], const char *source
) {
+static int shorten_uuid(char destination[3
4], const char source[36]
) {
unsigned i, j;
for (i = 0, j = 0; i < 36 && j < 32; i++) {