diff --git a/src/ChangeLog b/src/ChangeLog index 5080dc7f3..5b7c93a33 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,8 @@ 2004-09-26 Roland Illig * pipethrough.c: #include to compile on Solaris. + * util.h (convert_controls): Adjusted the comment to what the + function really does. 2004-09-26 Mike Gorchak diff --git a/src/util.h b/src/util.h index 52fabda9d..03a3a76ab 100644 --- a/src/util.h +++ b/src/util.h @@ -59,8 +59,10 @@ const char *skip_separators (const char *s); const char *skip_numbers (const char *s); char *strip_ctrl_codes (char *s); -/* in-place conversion. returns s. */ -char *convert_controls (char *s); +/* Replaces "\\E" and "\\e" with "\033". Replaces "^" + [a-z] with + * ((char) 1 + (c - 'a')). The same goes for "^" + [A-Z]. + * Returns a newly allocated string. */ +char *convert_controls (const char *s); /* overwrites passwd with '\0's and frees it. */ void wipe_password (char *passwd);