Changeset 34 for trunk/src/sh_prelink.c


Ignore:
Timestamp:
May 19, 2006, 8:09:51 PM (18 years ago)
Author:
rainer
Message:

Code cleanup and minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_prelink.c

    r22 r34  
    4040int sh_prelink_set_path (const char * str)
    4141{
    42   size_t len;
    4342  SL_ENTER(_("sh_prelink_set_path"));
    4443  if (prelink_path != NULL)
     
    4948      SL_RETURN((-1), _("sh_prelink_set_path"));
    5049    }
    51   len = sl_strlen (str);
    52   prelink_path = SH_ALLOC(len+1);
    53   (void) sl_strlcpy(prelink_path, str, len+1);
     50
     51  prelink_path = sh_util_strdup(str);
     52
    5453  SL_RETURN(0, _("sh_prelink_set_path"));
    5554}
Note: See TracChangeset for help on using the changeset viewer.