Changeset 060b3b4


Ignore:
Timestamp:
Feb 19, 2003, 12:08:41 AM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ced25d1
Parents:
89426ab
Message:
Fixed bug in unsub command that could cause file corruption.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r89426ab r060b3b4  
    1818        The 'all' filter has been redefinied to be 'true' and there is a
    1919          'none' filter defined as 'false'
     20        Fixed bug in 'unsub' command that could cause file corruption
    2021
    21221.2.8
  • editwin.c

    r601a9e0 r060b3b4  
    4949
    5050WINDOW *owl_editwin_get_curswin(owl_editwin *e) {
    51   return e->curswin;
     51  return(e->curswin);
    5252}
    5353
    5454void owl_editwin_set_history(owl_editwin *e, owl_history *h) {
    55   e->hist = h;
     55  e->hist=h;
    5656}
    5757
    5858owl_history *owl_editwin_get_history(owl_editwin *e) {
    59   return e->hist;
     59  return(e->hist);
    6060}
    6161
     
    6666int owl_editwin_limit_maxcols(int v, int maxv) {
    6767  if (maxv > 5 && v > maxv) {
    68     return maxv;
     68    return(maxv);
    6969  } else {
    70     return v;
     70    return(v);
    7171  }
    7272}
  • functions.c

    rd0d65df r060b3b4  
    11931193      }
    11941194
    1195       sprintf(buff, "Checkd Ath: %i\n", buff, n->z_checked_auth);
     1195      sprintf(buff, "Checkd Ath: %i\n", n->z_checked_auth);
    11961196      sprintf(buff, "%sMulti notc: %s\n", buff, n->z_multinotice);
    11971197      sprintf(buff, "%sNum other : %i\n", buff, n->z_num_other_fields);
  • zephyr.c

    raecf3e6 r060b3b4  
    477477  /* we'll read the entire file into memory, minus the line we don't want and
    478478   * and at the same time create a backup file */
    479   text=malloc(LINE);
     479  text=owl_malloc(LINE);
     480  strcpy(text, "");
    480481  size=LINE;
    481482  while (fgets(buff, LINE, file)!=NULL) {
     
    483484    if (strcasecmp(buff, line)) {
    484485      size+=LINE;
    485       text=realloc(text, size);
     486      text=owl_realloc(text, size);
    486487      strcat(text, buff);
    487488    }
Note: See TracChangeset for help on using the changeset viewer.