Bugzilla – Attachment 2858 Details for
Bug 2434
scp can send arbitrary control characters / escape sequences to the terminal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch using new utf8.h
file_2434.txt (text/plain), 587 bytes, created by
Jakub Jelen
on 2016-07-26 18:43:07 AEST
(
hide
)
Description:
proposed patch using new utf8.h
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2016-07-26 18:43:07 AEST
Size:
587 bytes
patch
obsolete
>diff --git a/progressmeter.c b/progressmeter.c >index fe9bf52..dca04fe 100644 >--- a/progressmeter.c >+++ b/progressmeter.c >@@ -39,6 +39,7 @@ > #include "progressmeter.h" > #include "atomicio.h" > #include "misc.h" >+#include "utf8.h" > > #define DEFAULT_WINSIZE 80 > #define MAX_WINSIZE 512 >@@ -160,7 +161,7 @@ refresh_progress_meter(void) > buf[0] = '\0'; > file_len = win_size - 35; > if (file_len > 0) { >- len = snprintf(buf, file_len + 1, "\r%s", file); >+ len = snmprintf(buf, sizeof(buf), NULL, "\r%s", file); > if (len < 0) > len = 0; > if (len >= file_len + 1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2434
:
2678
|
2858
|
2942
|
2943
|
3228