Changeset 132 for trunk/src/sh_kern.c


Ignore:
Timestamp:
Oct 23, 2007, 11:44:41 PM (17 years ago)
Author:
rainer
Message:

Make utility functions thread-safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_kern.c

    r131 r132  
    12221222              if (mod_syscall_code != 0)
    12231223                {
    1224                   sl_strlcpy (timstr_o, sh_unix_gmttime (ctime_old), 32);
    1225                   sl_strlcpy (timstr_n, sh_unix_gmttime (ctime_new), 32);
     1224                  (void) sh_unix_gmttime (ctime_old, timstr_o, sizeof(timstr_o));
     1225                  (void) sh_unix_gmttime (ctime_new, timstr_n, sizeof(timstr_n));
    12261226#ifdef SH_USE_XML
    12271227                  sl_snprintf(tmp, 128,
     
    12341234#endif
    12351235                  sl_strlcat(msg, tmp, SH_BUFSIZE);
    1236                   sl_strlcpy (timstr_o, sh_unix_gmttime (mtime_old), 32);
    1237                   sl_strlcpy (timstr_n, sh_unix_gmttime (mtime_new), 32);
     1236                  (void) sh_unix_gmttime (mtime_old, timstr_o, sizeof(timstr_o));
     1237                  (void) sh_unix_gmttime (mtime_new, timstr_n, sizeof(timstr_n));
    12381238#ifdef SH_USE_XML
    12391239                  sl_snprintf(tmp, 128,
     
    16931693                  sl_strlcpy(msg, tmp, SH_BUFSIZE);
    16941694
    1695                   sl_strlcpy (timstr_o, sh_unix_gmttime (ctime_old), 32);
    1696                   sl_strlcpy (timstr_n, sh_unix_gmttime (ctime_new), 32);
     1695                  (void) sh_unix_gmttime (ctime_old, timstr_o, sizeof(timstr_o));
     1696                  (void) sh_unix_gmttime (ctime_new, timstr_n, sizeof(timstr_n));
    16971697#ifdef SH_USE_XML
    16981698                  sl_snprintf(tmp, 128,
     
    17051705#endif
    17061706                  sl_strlcat(msg, tmp, SH_BUFSIZE);
    1707                   sl_strlcpy (timstr_o, sh_unix_gmttime (mtime_old), 32);
    1708                   sl_strlcpy (timstr_n, sh_unix_gmttime (mtime_new), 32);
     1707                  (void) sh_unix_gmttime (mtime_old, timstr_o, sizeof(timstr_o));
     1708                  (void) sh_unix_gmttime (mtime_new, timstr_n, sizeof(timstr_n));
    17091709#ifdef SH_USE_XML
    17101710                  sl_snprintf(tmp, 128,
Note: See TracChangeset for help on using the changeset viewer.