Changeset 25 for trunk/src


Ignore:
Timestamp:
Mar 14, 2006, 10:27:38 PM (19 years ago)
Author:
rainer
Message:

More tests; fix for update+schedule issue.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/samhain.c

    r22 r25  
    17951795      /* see whether its time to check files
    17961796       */
    1797       if      (sh.flag.checkSum == SH_CHECK_INIT)
     1797      if      (sh.flag.checkSum == SH_CHECK_INIT ||
     1798               (sh.flag.checkSum == SH_CHECK_CHECK &&
     1799                (sh.flag.isdaemon == S_FALSE && sh.flag.loop == S_FALSE)))
    17981800        {
    17991801          flag_check_1 = 1;
  • trunk/src/sh_html.c

    r22 r25  
    313313          sl_strlcat(&entry_orig[entry_size], line, line_size + 1);
    314314          entry_size += add_size;
    315           SH_VAL_EQ(entry_orig[entry_size], '\0');
     315          SH_VALIDATE_EQ(entry_orig[entry_size], '\0');
    316316        }
    317317      sl_close(fd);
  • trunk/src/sh_unix.c

    r22 r25  
    40244024    {
    40254025#ifdef WITH_TPT
    4026       sl_snprintf(str, 128, _("file: %s line: %d page: %d"),
     4026      sl_snprintf(str, sizeof(str), _("file: %s line: %d page: %d"),
    40274027                  page_list->file, page_list->line, i+1);
    40284028      sh_error_handle(SH_ERR_INFO, FIL__, __LINE__, i, MSG_E_SUBGEN,
     
    40324032      ++i;
    40334033    }
    4034   sl_snprintf(str, 128, _("%d pages locked"), i);
     4034  sl_snprintf(str, sizeof(str), _("%d pages locked"), i);
    40354035  sh_error_handle(SH_ERR_INFO, FIL__, __LINE__, i, MSG_E_SUBGEN,
    40364036                  str, _("sh_unix_count_mlock"));
  • trunk/src/sh_utils.c

    r22 r25  
    205205  SL_ENTER(_("sh_util_strdup"));
    206206
    207   if (str != NULL)
    208     {
    209       len = sl_strlen(str);
    210       p   = SH_ALLOC (len + 1);
    211       (void) sl_strlcpy (p, str, len+1);
    212     }
     207  SH_VALIDATE_NE(str, NULL);
     208
     209  len = sl_strlen(str);
     210  p   = SH_ALLOC (len + 1);
     211  (void) sl_strlcpy (p, str, len+1);
     212
    213213  SL_RETURN( p, _("sh_util_strdup"));
    214214}
     
    224224  ret = *str;
    225225
    226   if (ret == NULL) {
    227     SL_RETURN(ret, _("sh_util_strsep"));
    228   }
     226  SH_VALIDATE_NE(ret, NULL);
    229227
    230228  for (c = *str; *c != '\0'; c++) {
  • trunk/src/slib.c

    r22 r25  
    577577
    578578#if !defined(HOST_IS_I86SOLARIS)
    579 #if !defined (_GNU_SOURCE)
     579#if !defined (_GNU_SOURCE) && !defined(__linux__)
    580580/* flawfinder: ignore */
    581581extern int vsnprintf ( char *str, size_t n,
Note: See TracChangeset for help on using the changeset viewer.