mirror of https://github.com/MidnightCommander/mc
* man2hlp.c (handle_link): Reverted the last change because
glib-1.2 does not know g_strlcpy.
This commit is contained in:
parent
64b5b8b9ee
commit
38257a486a
|
@ -1,3 +1,8 @@
|
|||
2004-09-02 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* man2hlp.c (handle_link): Reverted the last change because
|
||||
glib-1.2 does not know g_strlcpy.
|
||||
|
||||
2004-09-02 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||
|
||||
* complete.c (completion_matches): Use more suitable function
|
||||
|
|
|
@ -611,7 +611,8 @@ handle_link (char *buffer)
|
|||
/* Bold text or italics text */
|
||||
if (buffer[0] == '.' && (buffer[1] == 'I' || buffer[1] == 'B'))
|
||||
for (buffer += 2; *buffer == ' ' || *buffer == '\t'; buffer++);
|
||||
g_strlcpy (old, buffer, sizeof (old));
|
||||
strncpy (old, buffer, sizeof (old) - 1);
|
||||
old[sizeof (old) - 1] = 0;
|
||||
link_flag = 3;
|
||||
break;
|
||||
case 3:
|
||||
|
|
Loading…
Reference in New Issue