* man2hlp.c (handle_link): Added header "glib-compat.h" because
glib-1.2 does not know g_strlcpy.
Этот коммит содержится в:
родитель
fc3bf048e9
Коммит
f30fc0163b
@ -5,7 +5,7 @@
|
||||
|
||||
2004-09-02 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* man2hlp.c (handle_link): Reverted the last change because
|
||||
* man2hlp.c (handle_link): Added header "glib-compat.h" because
|
||||
glib-1.2 does not know g_strlcpy.
|
||||
|
||||
2004-09-02 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include "help.h"
|
||||
#include "glib-compat.h"
|
||||
|
||||
#define BUFFER_SIZE 256
|
||||
|
||||
@ -611,8 +612,7 @@ 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++);
|
||||
strncpy (old, buffer, sizeof (old) - 1);
|
||||
old[sizeof (old) - 1] = 0;
|
||||
g_strlcpy (old, buffer, sizeof (old));
|
||||
link_flag = 3;
|
||||
break;
|
||||
case 3:
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user