Changeset 34 for trunk/src/sh_html.c


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

Code cleanup and minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_html.c

    r25 r34  
    108108  if (!SL_ISERROR(fd))
    109109    {
    110       while (!SL_ISERROR(status) && sh_unix_getline (fd, line, 511) > 0)
     110      while (!SL_ISERROR(status) && sh_unix_getline (fd, line, sizeof(line)) > 0)
    111111        {
    112112          formatted = replace_stat (line);
     
    121121  else
    122122    {
    123       qstr = sh_util_filename(DEFAULT_HTML_FILE);
     123      qstr = sh_util_basename(DEFAULT_HTML_FILE);
    124124      if (qstr != NULL)
    125125        {
     
    217217  if (!SL_ISERROR(fd))
    218218    {
    219       while (!SL_ISERROR(status) && sh_unix_getline (fd, line, 511) > 0)
     219      while (!SL_ISERROR(status) && sh_unix_getline (fd, line, sizeof(line)) > 0)
    220220        {
    221221          status = sl_write_line (ticket, line, sl_strlen(line));
     
    289289  if (!SL_ISERROR(fd))
    290290    {
    291       while (!SL_ISERROR(retval) && sh_unix_getline (fd, line, 511) > 0)
     291      while (!SL_ISERROR(retval) && sh_unix_getline (fd, line, sizeof(line)) > 0)
    292292        {
    293293          line_size = sl_strlen(line);
Note: See TracChangeset for help on using the changeset viewer.