Ticket #24149: 0001-Fix-rust-welcome-message-typo.patch

File 0001-Fix-rust-welcome-message-typo.patch, 811 bytes (added by Hello71, 2 years ago)
  • src/rust/tor_util/ffi.rs

    From 75c6a20a877a152df5cea90e8d6ff3d6603e6b33 Mon Sep 17 00:00:00 2001
    From: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
    Date: Sun, 5 Nov 2017 15:47:49 +0000
    Subject: [PATCH] Fix rust welcome message typo.
    
    ---
     src/rust/tor_util/ffi.rs | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/rust/tor_util/ffi.rs b/src/rust/tor_util/ffi.rs
    index 76c6e6d39..5c3cdba4b 100644
    a b use tor_allocate::allocate_and_copy_string; 
    2020pub extern "C" fn rust_welcome_string() -> *mut c_char {
    2121    let rust_welcome = String::from(
    2222        "Tor is running with Rust integration. Please report \
    23          any bugs you encouter.",
     23         any bugs you encounter.",
    2424    );
    2525    allocate_and_copy_string(&rust_welcome)
    2626}