summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/albumart.c4
-rw-r--r--apps/recorder/keyboard.c2
-rw-r--r--apps/recorder/pcm_record.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index e94ffcfb80..8991a81848 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -67,7 +67,7 @@ static char* strip_filename(char* buf, int buf_size, const char* fullpath)
67 } 67 }
68 68
69 len = MIN(sep - fullpath + 1, buf_size - 1); 69 len = MIN(sep - fullpath + 1, buf_size - 1);
70 strlcpy(buf, fullpath, len + 1); 70 strmemccpy(buf, fullpath, len + 1);
71 return (sep + 1); 71 return (sep + 1);
72} 72}
73 73
@@ -266,7 +266,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
266 if (!found) 266 if (!found)
267 return false; 267 return false;
268 268
269 strlcpy(buf, path, buflen); 269 strmemccpy(buf, path, buflen);
270 logf("Album art found: %s", path); 270 logf("Album art found: %s", path);
271 return true; 271 return true;
272} 272}
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 45cccdcf8b..f64061d303 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -1063,7 +1063,7 @@ static void kbd_draw_edit_line(struct keyboard_parameters *pm,
1063 while (*utf8 && i < pm->max_chars_text) 1063 while (*utf8 && i < pm->max_chars_text)
1064 { 1064 {
1065 j = utf8seek(utf8, 1); 1065 j = utf8seek(utf8, 1);
1066 strlcpy(outline, utf8, j+1); 1066 strmemccpy(outline, utf8, j+1);
1067 sc->getstringsize(outline, &w, NULL); 1067 sc->getstringsize(outline, &w, NULL);
1068 sc->putsxy(text_margin + i*pm->text_w + (pm->text_w-w)/2, 1068 sc->putsxy(text_margin + i*pm->text_w + (pm->text_w-w)/2,
1069 y, outline); 1069 y, outline);
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index d3d45d3e1c..f7f4c77928 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -1352,7 +1352,7 @@ static void mark_stream(const char *path, enum mark_stream_action action)
1352 1352
1353 file->hdr.type = CHUNK_T_STREAM_START; 1353 file->hdr.type = CHUNK_T_STREAM_START;
1354 file->hdr.size = count; 1354 file->hdr.size = count;
1355 strlcpy(file->path, path, MAX_PATH); 1355 strmemccpy(file->path, path, MAX_PATH);
1356 } 1356 }
1357} 1357}
1358 1358
@@ -1582,7 +1582,7 @@ static void on_record(const char *filename)
1582 1582
1583 /* Copy path and let caller go */ 1583 /* Copy path and let caller go */
1584 char path[MAX_PATH]; 1584 char path[MAX_PATH];
1585 strlcpy(path, filename, MAX_PATH); 1585 strmemccpy(path, filename, MAX_PATH);
1586 1586
1587 queue_reply(&audio_queue, 0); 1587 queue_reply(&audio_queue, 0);
1588 1588