summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-04-28 18:34:12 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-04-28 18:34:12 -0300
commit3badc34d8f963a2b0145440d7908de746cbd9da3 (patch)
treec7b97958e877a6be3d4dcda659a830ee260ca959
parentee7b71e9e1380592f47b78673bf127f1c18bbcb9 (diff)
Add missed NUL's.
-rw-r--r--src/list.rs34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/list.rs b/src/list.rs
index e6d4aaa..d042d21 100644
--- a/src/list.rs
+++ b/src/list.rs
@@ -194,7 +194,7 @@ macro_rules! field_time {
 impl<'a, 'ph> Fields<'a, 'ph, Contexts> {
     field_str!(
         /// The context's name.
-        name, unsafe { "channel" }
+        name, unsafe { "channel\0" }
     );
     field_str!(
         /// The channel key.
@@ -216,11 +216,11 @@ impl<'a, 'ph> Fields<'a, 'ph, Contexts> {
     );
     field_int!(
         /// Raw flags about this context.
-        raw_flags, unsafe { "flags" }
+        raw_flags, unsafe { "flags\0" }
     );
     field_int!(
         /// The server ID.
-        server_id, unsafe { "id" }
+        server_id, unsafe { "id\0" }
     );
     field_int!(
         /// The latency to server in milliseconds.
@@ -244,7 +244,7 @@ impl<'a, 'ph> Fields<'a, 'ph, Contexts> {
     );
     field_int!(
         /// The current length of the send-queue, in bytes.
-        queue_len, unsafe { "queue" }
+        queue_len, unsafe { "queue\0" }
     );
     field_str!(
         /// The server's name.
@@ -252,7 +252,7 @@ impl<'a, 'ph> Fields<'a, 'ph, Contexts> {
     );
     field_int!(
         /// The context's raw type.
-        raw_type, unsafe { "type" }
+        raw_type, unsafe { "type\0" }
     );
     field_int!(
         /// The number of users in the channel.
@@ -268,7 +268,7 @@ impl<'a, 'ph> Fields<'a, 'ph, Dcc> {
     );
     field_int!(
         /// The transfer rate (speed), in bytes per second.
-        rate, unsafe { "cps" }
+        rate, unsafe { "cps\0" }
     );
     field_str!(
         /// The destination file path.
@@ -288,35 +288,35 @@ impl<'a, 'ph> Fields<'a, 'ph, Dcc> {
     );
     field_int!(
         /// File position, LSB 32 bits.
-        raw_pos, unsafe { "pos" }
+        raw_pos, unsafe { "pos\0" }
     );
     field_int!(
         /// File position, MSB 32 bits.
-        raw_poshigh, unsafe { "poshigh" }
+        raw_poshigh, unsafe { "poshigh\0" }
     );
     field_int!(
         /// Resumed position, LSB 32 bits.
-        raw_resume, unsafe { "resume" }
+        raw_resume, unsafe { "resume\0" }
     );
     field_int!(
         /// Resumed position, MSB 32 bits.
-        raw_resumehigh, unsafe { "resumehigh" }
+        raw_resumehigh, unsafe { "resumehigh\0" }
     );
     field_int!(
         /// File size, LSB 32 bits.
-        raw_size, unsafe { "size" }
+        raw_size, unsafe { "size\0" }
     );
     field_int!(
         /// File size, MSB 32 bits.
-        raw_sizehigh, unsafe { "sizehigh" }
+        raw_sizehigh, unsafe { "sizehigh\0" }
     );
     field_int!(
         /// Raw DCC status.
-        raw_status, unsafe { "status" }
+        raw_status, unsafe { "status\0" }
     );
     field_int!(
         /// Raw type.
-        raw_type, unsafe { "type" }
+        raw_type, unsafe { "type\0" }
     );
 }
 
@@ -328,7 +328,7 @@ impl<'a, 'ph> Fields<'a, 'ph, Ignore> {
     );
     field_int!(
         /// Raw ignore flags.
-        raw_flags, unsafe { "flags" }
+        raw_flags, unsafe { "flags\0" }
     );
 }
 
@@ -344,7 +344,7 @@ impl<'a, 'ph> Fields<'a, 'ph, Notify> {
     );
     field_int!(
         /// Raw flags.
-        raw_flags, unsafe { "flags" }
+        raw_flags, unsafe { "flags\0" }
     );
     field_time!(
         /// Time when the user went online. [NYI]
@@ -388,7 +388,7 @@ impl<'a, 'ph> Fields<'a, 'ph, Users> {
     );
     field_str!(
         /// User's userdata.
-        userdata, unsafe { "realname" }
+        userdata, unsafe { "realname\0" }
     );
     field_bool!(
         /// Whether the user is selected in the UI.