Changeset 279 for trunk/src/slib.c


Ignore:
Timestamp:
Apr 30, 2010, 11:55:18 PM (15 years ago)
Author:
katerina
Message:

Fix for tickets #200 to #206 (kernel check, login checks, bugfixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/slib.c

    r272 r279  
    1616#endif
    1717
     18#include <sys/types.h>
     19#include <sys/stat.h>
    1820#include <unistd.h>
    19 #include <sys/stat.h>
    20 #include <sys/types.h>
    2121#include <fcntl.h>
    2222#include <signal.h>
     
    259259  else
    260260    sl_strlcpy(tmp, fmt, 256);
    261   retval = sl_strlen(tmp);
     261  retval = strlen(tmp);
    262262  if (retval > 0 && tmp[retval-1] == '\n')
    263263    tmp[retval-1] = '\0';
     
    274274      sprintf      (val, _("[%2d] "), trace_level);
    275275      sl_strlcat   (msg,     val,   256);
    276       sl_vsnprintf (&msg[sl_strlen(msg)], 255, tmp, ap);
     276      sl_vsnprintf (&msg[strlen(msg)], 255, tmp, ap);
    277277      sl_snprintf  (tmp, 255, _(" \t - File %c%s%c at line %d"),
    278278                    0x22, file, 0x22, line);
Note: See TracChangeset for help on using the changeset viewer.