~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to clamd/dazukoio.c

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include <sys/types.h>
43
43
#include <fcntl.h>
44
44
#include <string.h>
45
 
#ifdef HAVE_STRINGS_H
46
 
#include <strings.h>
47
 
#endif
48
45
#include <unistd.h>
49
46
#include "dazukoio_xp.h"
50
47
#include "dazukoio.h"
176
173
        if (strcasecmp(mode, "r") == 0)
177
174
        {
178
175
                strncpy(regMode, "R", sizeof(regMode));
179
 
                regMode[sizeof(regMode)-1]='\0';
180
176
                write_mode = 0;
181
177
        }
182
178
        else if (strcasecmp(mode, "r+") == 0 || strcasecmp(mode, "rw") == 0)
183
179
        {
184
180
                strncpy(regMode, "RW", sizeof(regMode));
185
 
                regMode[sizeof(regMode)-1]='\0';
186
181
                write_mode = 1;
187
182
        }
188
183
        else