Index: apps/onplay.c
===================================================================
--- apps/onplay.c	(revision 28557)
+++ apps/onplay.c	(working copy)
@@ -1038,7 +1038,8 @@
 #ifdef HAVE_RECORDING
 static bool set_recdir(void)
 {
-    strlcpy(global_settings.rec_directory, selected_file, MAX_FILENAME+1);
+    strlcpy(global_settings.rec_directory, selected_file,
+            sizeof(global_settings.rec_directory));
     settings_save();
     return false;
 }
Index: apps/settings.h
===================================================================
--- apps/settings.h	(revision 28557)
+++ apps/settings.h	(working copy)
@@ -42,6 +42,7 @@
 
 /** Setting values defines **/
 #define MAX_FILENAME 32
+#define MAX_PATHNAME 80
 
 
 enum {
@@ -417,7 +418,7 @@
     int rec_split_method; /* time/filesize */
 
     int rec_prerecord_time; /* In seconds, 0-30, 0 means OFF */
-    char rec_directory[MAX_FILENAME+1];
+    char rec_directory[MAX_PATHNAME+1];
     int cliplight; /* 0 = off
                       1 = main lcd
                       2 = main and remote lcd
@@ -531,7 +532,7 @@
     unsigned char rsbs_file[MAX_FILENAME+1];  /* last remote statusbar skin */
 #endif
     unsigned char lang_file[MAX_FILENAME+1]; /* last language */
-    unsigned char playlist_catalog_dir[MAX_FILENAME+1];
+    unsigned char playlist_catalog_dir[MAX_PATHNAME+1];
     int skip_length; /* skip length */
     int max_files_in_dir; /* Max entries in directory (file browser) */
     int max_files_in_playlist; /* Max entries in playlist */
@@ -810,7 +811,7 @@
 #endif
     } hw_eq_bands[AUDIOHW_EQ_BAND_NUM];
 #endif /* AUDIOHW_HAVE_EQ */
-    char start_directory[2*MAX_FILENAME+1];
+    char start_directory[MAX_PATHNAME+1];
 };
 
 /** global variables **/
Index: apps/plugin.h
===================================================================
--- apps/plugin.h	(revision 28557)
+++ apps/plugin.h	(working copy)
@@ -147,12 +147,12 @@
 #define PLUGIN_MAGIC 0x526F634B /* RocK */
 
 /* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 194
+#define PLUGIN_API_VERSION 195
 
 /* update this to latest version if a change to the api struct breaks
    backwards compatibility (and please take the opportunity to sort in any
    new function which are "waiting" at the end of the function table) */
-#define PLUGIN_MIN_API_VERSION 194
+#define PLUGIN_MIN_API_VERSION 195
 
 /* plugin return codes */
 /* internal returns start at 0x100 to make exit(1..255) work */
