[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] tcpip: Konfigurationsdateien haben ein Nullbyte zuviel



! tcpip: An Ende von IP und MAC gehoert kein Nullbyte. kedit zeigt das
  naemlich sogar an.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/tcpip/lostio_if.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/tcpip/lostio_if.c b/src/modules/tcpip/lostio_if.c
index 1f3b428..a849f18 100644
--- a/src/modules/tcpip/lostio_if.c
+++ b/src/modules/tcpip/lostio_if.c
@@ -361,7 +361,7 @@ size_t lostio_netconfig_read(lostio_filehandle_t *handle, void *buf, size_t bloc
     // <treibername>/<devicenummer>/mac
     else if (handle->node->size == 2)
         data = mac_to_string(device->dev.mac);
-    size_t size = strlen(data) + 1;
+    size_t size = strlen(data);
 
     if (handle->pos >= size) {
         handle->flags |= LOSTIO_FLAG_EOF;
-- 
1.6.0.2