mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: every time
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
a1f463ea99
commit
fbdf1536ff
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ static void prv_build_transcription_dialog_text(ReminderAppData *data) {
|
|||
|
||||
int buf_space_remaining = required_buf_size - 1 /*for the final \0 */;
|
||||
strncpy(data->dialog_text, data->reminder_str, sentence_len);
|
||||
// Having to call MAX everytime is a bit silly, but the strn function expect a size_t (unsigned).
|
||||
// Having to call MAX every time is a bit silly, but the strn function expect a size_t (unsigned).
|
||||
// Calling MAX ensures that a negative value isn't passed in which gets cast to something positive
|
||||
buf_space_remaining = MAX(buf_space_remaining - sentence_len, 0);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue