diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-06-02 15:57:37 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-06-02 15:57:37 -0800 |
| commit | 7534ef7d4eadea0307de07651b99b138b4777df9 (patch) | |
| tree | a6515ea4666c9a15514b0fd73710ac84e2a455bd | |
| parent | 49120d14ee0d1ce50b24305a625d7cd231ed9199 (diff) | |
| download | tinytac-7534ef7d4eadea0307de07651b99b138b4777df9.tar.gz tinytac-7534ef7d4eadea0307de07651b99b138b4777df9.tar.bz2 tinytac-7534ef7d4eadea0307de07651b99b138b4777df9.tar.xz tinytac-7534ef7d4eadea0307de07651b99b138b4777df9.zip | |
tinytac: updating to trim newlines from password file
| -rw-r--r-- | src/ttu/tinytacutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ttu/tinytacutil.c b/src/ttu/tinytacutil.c index efbb631..2ff5a8e 100644 --- a/src/ttu/tinytacutil.c +++ b/src/ttu/tinytacutil.c | |||
| @@ -339,6 +339,8 @@ ttu_file2str( | |||
| 339 | str[sb.st_size] = '\0'; | 339 | str[sb.st_size] = '\0'; |
| 340 | close(fd); | 340 | close(fd); |
| 341 | 341 | ||
| 342 | tinytacb_strchomp(str, NULL); | ||
| 343 | |||
| 342 | return(str); | 344 | return(str); |
| 343 | } | 345 | } |
| 344 | 346 | ||
