mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-02 13:30:32 +00:00
Picky changes to 47b45b2967
This commit is contained in:
2 files changed
+1
-6
No files matched your search
+1
-1
@@ -287,7 +287,7 @@ void *safe_malloc(size_t size)
|
||||
* Can be replaced by (void)strlcpy() on some platforms */
|
||||
void safe_strncpy(char *dest, const char *src, size_t size)
|
||||
{
|
||||
if (size)
|
||||
if (size != 0)
|
||||
{
|
||||
dest[size-1] = '\0';
|
||||
strncpy(dest, src, size-1);
|
||||
|
||||
Reference in new issue
Block a user