* man2hlp.c (handle_link): Reverted the last change because

glib-1.2 does not know g_strlcpy.
This commit is contained in:
Roland Illig 2004-09-02 12:30:28 +00:00
parent 64b5b8b9ee
commit 38257a486a
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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: