Changeset 3597:302fa8a01ccb for buffy.c

Show
Ignore:
Timestamp:
2004-02-01 09:50:43 (5 years ago)
Author:
Luke Mewburn <luke@…>
Branch:
HEAD
Message:

Put a zero byte into the string, not into the pointer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r3447 r3597  
    507507  case 0: 
    508508 
    509     s = '\0'; 
     509    *s = '\0'; 
    510510    break; 
    511511 
     
    516516    if (!tmp) 
    517517    { 
    518       s = '\0'; 
     518      *s = '\0'; 
    519519      mutt_buffy_check (1); /* buffy was wrong - resync things */ 
    520520      break; 
     
    542542    if (count >= 3) 
    543543    { 
    544       s = '\0'; 
     544      *s = '\0'; 
    545545      mutt_buffy_check (1); /* buffy was wrong - resync things */ 
    546546      break;