Remove trailing whitespace. Update copyright to include 2004.
This commit is contained in:
parent
8854004b41
commit
c7bda1ce65
374 changed files with 2048 additions and 2051 deletions
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Utility routines.
|
||||
*
|
||||
* Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -24,11 +24,11 @@
|
|||
|
||||
|
||||
|
||||
/* Like strncpy but make sure the resulting string is always 0 terminated. */
|
||||
/* Like strncpy but make sure the resulting string is always 0 terminated. */
|
||||
extern char * safe_strncpy(char *dst, const char *src, size_t size)
|
||||
{
|
||||
{
|
||||
dst[size-1] = '\0';
|
||||
return strncpy(dst, src, size-1);
|
||||
return strncpy(dst, src, size-1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue