summaryrefslogtreecommitdiffstats
path: root/ulogd/conffile
diff options
context:
space:
mode:
authorlaforge <laforge>2001-05-26 23:19:28 +0000
committerlaforge <laforge>2001-05-26 23:19:28 +0000
commit5a94632e3102bdb60db0ce863e0e01a08d02e109 (patch)
tree02b15203cb30e0a55f645849c1bf706c5b52a5c1 /ulogd/conffile
parente95fef11d1458a8991b3076cfb17493a80be977a (diff)
added a few syntactic corrections
Diffstat (limited to 'ulogd/conffile')
-rw-r--r--ulogd/conffile/conffile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ulogd/conffile/conffile.c b/ulogd/conffile/conffile.c
index 7185649..4257e3d 100644
--- a/ulogd/conffile/conffile.c
+++ b/ulogd/conffile/conffile.c
@@ -2,7 +2,7 @@
*
* (C) 2000 by Harald Welte <laforge@gnumonks.org>
*
- * $Id: conffile.c,v 1.1 2000/11/20 11:43:22 laforge Exp $
+ * $Id: conffile.c,v 1.2 2001/02/04 13:08:02 laforge Exp $
*
* This code is distributed under the terms of GNU GPL */
@@ -33,7 +33,7 @@ static char *fname = NULL;
* Return value: pointer to first char after word
* This function can deal with "" quotes
*/
-char* get_word(char *line, char *not, char *buf)
+static char *get_word(char *line, char *not, char *buf)
{
char *p, *start = NULL, *stop = NULL;
int inquote = 0;
@@ -69,7 +69,7 @@ char* get_word(char *line, char *not, char *buf)
if (!stop)
return NULL;
- strncpy(buf, start, stop-start);
+ strncpy(buf, start, (size_t) (stop-start));
*(buf + (stop-start)) = '\0';
/* skip quote character */