fixing buffer length
This commit is contained in:
@@ -25,7 +25,7 @@ const CHARLOTTE: u32 = 14321;
|
|||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let mut location_id: u32 = CHARLOTTE;
|
let mut location_id: u32 = CHARLOTTE;
|
||||||
let mut buf = [0, 0, 0, 0];
|
let mut buf = [0; 32];
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"Enter a location id to override the default (Charlotte, NC, {:?}): ",
|
"Enter a location id to override the default (Charlotte, NC, {:?}): ",
|
||||||
|
|||||||
Reference in New Issue
Block a user