[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Jun 10 10:19:44 PDT 2014
src/core/machine-id-setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 34f750b7251936965045754e0f337cd5495ea25b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jun 10 19:15:06 2014 +0200
machine-id-setup: fix array size of parameters
Not that it really would have any effect on the generated code, but
let's not confuse people...
diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c
index 2a58e48..3efcd5f 100644
--- 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[36], const char *source) {
+static int shorten_uuid(char destination[34], const char source[36]) {
unsigned i, j;
for (i = 0, j = 0; i < 36 && j < 32; i++) {
More information about the systemd-commits
mailing list