1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/emulators/gsnes9x/files/patch-aa
Alexander Langer 4e044e735f Add gsnes9x, a GTK front-end for the Snes9X SNES emulator.
PR:             19370
Submitted by:   Kelly Yancey <kbyanc@posi.net>
2000-07-16 15:32:28 +00:00

47 lines
1.2 KiB
Plaintext

--- src/util.c.orig Sun Jun 18 17:34:30 2000
+++ src/util.c Sun Jun 18 18:06:56 2000
@@ -79,7 +79,7 @@
if (!names)
return list;
- getline (&str, &size, names);
+ fgets (str, size, names);
str[strlen (str)-1] = '\0'; /* Rip out the '\n'. */
while (!feof (names)) {
@@ -102,7 +102,7 @@
if (rom_info)
list = g_list_prepend (list, (gpointer)rom_info);
- getline (&str, &size, names);
+ fgets (str, size, names);
str[strlen(str)-1] = '\0';
}
@@ -314,7 +314,7 @@
if (!file)
return list;
- getline (&str, &size, file);
+ fgets (str, size, file);
str[strlen (str)-1] = '\0'; /* Rip out '\n' */
if (!strcmp (str, ""))
return list;
@@ -322,13 +322,13 @@
do {
cheat_code = g_new (CheatCode, 1);
cheat_code->code = g_strdup (str);
- getline (&str, &size, file);
+ fgets (str, size, file);
str[strlen (str)-1] = '\0'; /* Rip out '\n' */
cheat_code->name = g_strdup (str);
- getline (&str, &size, file);
+ fgets (str, size, file);
str[strlen (str)-1] = '\0'; /* Rip out '\n' */
cheat_code->descr = g_strdup (str);
- getline (&str, &size, file);
+ fgets (str, size, file);
if (strcmp (str, cheat_code->descr))
str[strlen (str)-1] = '\0'; /* Rip out '\n' */