fixing buffer length

This commit is contained in:
Joey Eamigh
2023-02-07 12:27:48 -05:00
parent cce7f6266d
commit 3e045f7a80

View File

@@ -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, {:?}): ",