2 Commits
v3 ... main

Author SHA1 Message Date
Joey Eamigh
e383ce817e adding newline 2023-02-07 12:37:01 -05:00
Joey Eamigh
3e045f7a80 fixing buffer length 2023-02-07 12:27:48 -05:00
2 changed files with 4 additions and 4 deletions

View File

@@ -2,9 +2,9 @@ NAME = "globalenter"
build b:
@echo "building x86_64 Linux"
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-unknown-linux-gnu -q --frozen
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-unknown-linux-gnu -q
@echo "building x86_64 Windows"
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-pc-windows-gnu -q --frozen
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-pc-windows-gnu -q
mkdir -p bin
cp target/x86_64-unknown-linux-gnu/release/$(NAME) bin/$(NAME)
chmod +x bin/$(NAME)
@@ -14,4 +14,4 @@ build b:
clean c:
cargo clean
rm -rf bin
rm -rf bin

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