History

tests/src-evaluate.c: Fix compiling warning

Erik de Castro Lopo committed 8 years ago

Commit 71b400b1 parent 90f8bf71 file · +3 −1Browse files

Unified · Split

tests/src-evaluate.c+3−1
@@ -236,7 +236,9 @@ get_version_string (const RESAMPLE_PROG *prog) · 235 unmodified lines
236 cptr ++ ;236 cptr ++ ;
237 237
238 if (cptr != version_string)238 if (cptr != version_string)
239 strncpy (version_string, cptr, sizeof (version_string)) ;239 { strncpy (version_string, cptr, sizeof (version_string) - 1) ;
240 version_string [sizeof (version_string) - 1] = 0 ;
241 } ;
240 242
241 return ;243 return ;
242} /* get_version_string */244} /* get_version_string */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t