Commit 5afcef89 authored by Federico Vaga's avatar Federico Vaga

lib: do not need a terminator, buf is full of 0

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0d55b6b8
......@@ -1007,8 +1007,5 @@ int wrnc_debug_message_get(struct wrnc_dbg *dbg, char *buf, size_t count)
} while (real_count < count || n == 0);
/* Put a terminator */
buf[real_count - 1] = '\0';
return real_count;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment