From 3e045f7a803e911755fb7e87f9d68a27472b391d Mon Sep 17 00:00:00 2001 From: Joey Eamigh <55670930+JoeyEamigh@users.noreply.github.com> Date: Tue, 7 Feb 2023 12:27:48 -0500 Subject: [PATCH] fixing buffer length --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 03f51d5..186eadd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ const CHARLOTTE: u32 = 14321; #[tokio::main] async fn main() { let mut location_id: u32 = CHARLOTTE; - let mut buf = [0, 0, 0, 0]; + let mut buf = [0; 32]; println!( "Enter a location id to override the default (Charlotte, NC, {:?}): ",