diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2014-05-01 13:44:06 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-05-01 17:47:26 +0300 |
commit | b64c621c9de3fa72ff1f1688d8453d99f5cf7352 (patch) | |
tree | a3d40f5ef1b7abc808fa67035b75e1c2ff4fc753 /src/squark-auth-ip.c | |
parent | c042435504daa7998863a64f9b621e6b73c91555 (diff) | |
download | squark-b64c621c9de3fa72ff1f1688d8453d99f5cf7352.tar.bz2 squark-b64c621c9de3fa72ff1f1688d8453d99f5cf7352.tar.xz |
squark-auth-ip: don't print nulls at end of username
Diffstat (limited to 'src/squark-auth-ip.c')
-rw-r--r-- | src/squark-auth-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/squark-auth-ip.c b/src/squark-auth-ip.c index baf0b4b..94c450f 100644 --- a/src/squark-auth-ip.c +++ b/src/squark-auth-ip.c @@ -228,7 +228,7 @@ int main(int argc, char **argv) DUMPPAR(&b, "ip_address", addr_push_hostaddr(&b, &ipaddr)); DUMPPAR(&b, "username", - blob_push(&b, BLOB_BUF(entry.p.login_name))); + blob_push(&b, BLOB_CHAR_ARRAY(entry.p.login_name))); DUMPPAR(&b, "mac_address", blob_push_hexdump(&b, BLOB_BUF(entry.p.mac_address))); DUMPPAR(&b, "login_time", |