diff options
Diffstat (limited to 'apps/plugins/zxbox/spconf.c')
-rw-r--r-- | apps/plugins/zxbox/spconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/zxbox/spconf.c b/apps/plugins/zxbox/spconf.c index 5a14959adc..728f78638c 100644 --- a/apps/plugins/zxbox/spconf.c +++ b/apps/plugins/zxbox/spconf.c | |||
@@ -111,8 +111,7 @@ void spcf_read_command_line(const void* parameter) | |||
111 | 111 | ||
112 | file_type = extensions[ix].type; | 112 | file_type = extensions[ix].type; |
113 | file_subtype = extensions[ix].subtype; | 113 | file_subtype = extensions[ix].subtype; |
114 | rb->strncpy(filenamebuf, parameter, MAXFILENAME - 10); | 114 | rb->strlcpy(filenamebuf, parameter, MAXFILENAME - 10 + 1); |
115 | filenamebuf[MAXFILENAME-10] = '\0'; | ||
116 | if(file_type < 0) file_subtype = -1; | 115 | if(file_type < 0) file_subtype = -1; |
117 | if(!spcf_find_file_type(filenamebuf, &file_type, &file_subtype)) | 116 | if(!spcf_find_file_type(filenamebuf, &file_type, &file_subtype)) |
118 | return; | 117 | return; |