diff options
Diffstat (limited to 'src/userpref.c')
| -rw-r--r-- | src/userpref.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/userpref.c b/src/userpref.c index cd29c43..49a3c45 100644 --- a/src/userpref.c +++ b/src/userpref.c | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <glib.h> | 22 | #include <glib.h> |
| 23 | #include <glib/gprintf.h> | ||
| 23 | #include <stdio.h> | 24 | #include <stdio.h> |
| 24 | #include <string.h> | 25 | #include <string.h> |
| 25 | #include "userpref.h" | 26 | #include "userpref.h" |
| @@ -140,7 +141,7 @@ int store_device_public_key(char* public_key) | |||
| 140 | g_io_channel_shutdown(file, TRUE, NULL); | 141 | g_io_channel_shutdown(file, TRUE, NULL); |
| 141 | 142 | ||
| 142 | /* append device to list */ | 143 | /* append device to list */ |
| 143 | gchar** new_devices_list = (gchar**)g_malloc(sizeof(gchar*)* (length + 2)); | 144 | const gchar** new_devices_list = (const gchar**)g_malloc(sizeof(gchar*)* (length + 2)); |
| 144 | int i; | 145 | int i; |
| 145 | for( i = 0; i < length; i++) | 146 | for( i = 0; i < length; i++) |
| 146 | new_devices_list[i] = devices_list[i]; | 147 | new_devices_list[i] = devices_list[i]; |
