summaryrefslogtreecommitdiff
path: root/source3/wrepld
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-15 10:54:35 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-15 10:54:35 +0000
commit159118de5ce0999b96ebe7cd7dc823087b0cccf5 (patch)
treea36cd7cde4ee83b7ec420d883ca8bb86b307f831 /source3/wrepld
parentfc26773500cc549563bcd00b2657713adf09a840 (diff)
downloadsamba-159118de5ce0999b96ebe7cd7dc823087b0cccf5.tar.gz
samba-159118de5ce0999b96ebe7cd7dc823087b0cccf5.tar.bz2
samba-159118de5ce0999b96ebe7cd7dc823087b0cccf5.zip
fixed a number of real bugs found by warnings on the 64 bit irix compiler
(This used to be commit 04de6bbc8055e5547af41b10e284b722f40e726d)
Diffstat (limited to 'source3/wrepld')
-rw-r--r--source3/wrepld/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/wrepld/parser.c b/source3/wrepld/parser.c
index f5b9be6727..b619cb0cef 100644
--- a/source3/wrepld/parser.c
+++ b/source3/wrepld/parser.c
@@ -96,7 +96,7 @@ static void decode_wins_name(struct BUFFER *outbuf, WINS_NAME *wins_name)
wins_name->name_len=RIVAL(outbuf->buffer, outbuf->offset);
outbuf->offset+=4;
memcpy(wins_name->name,outbuf->buffer+outbuf->offset, 15);
- wins_name->name[16]='\0';
+ wins_name->name[15]='\0';
if((p = strchr(wins_name->name,' ')) != NULL)
*p = 0;