blob: 12a37719956b4df417e234ff3f9fb7381fe469b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff -NurdB grdesktop-0.22-orig/src/options.c grdesktop-0.22/src/options.c
--- grdesktop-0.22-orig/src/options.c 2004-06-08 23:27:14 -0500
+++ grdesktop-0.22/src/options.c 2004-06-08 23:27:42 -0500
@@ -487,6 +487,7 @@
while((entry = readdir(licence_dir)) != NULL) {
gchar *fullname = NULL;
+ char *hostname;
struct stat sts;
fullname = g_strdup_printf("%s/%s", licence_path,
@@ -500,7 +501,7 @@
if(strlen(entry->d_name) <= strlen(prefix))
continue;
- gchar *hostname = &entry->d_name[strlen(prefix)];
+ hostname = &entry->d_name[strlen(prefix)];
licence_list = g_list_append(licence_list, g_strdup(hostname));
}
closedir(licence_dir);
|