Changeset 1765 in MondoRescue for branches/2.2.5/mindi-busybox/libbb/chomp.c


Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (17 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/libbb/chomp.c

    r821 r1765  
    99 */
    1010
    11 #include <stdio.h>
    12 #include <string.h>
    1311#include "libbb.h"
    14 
    1512
    1613void chomp(char *s)
     
    1815    char *lc = last_char_is(s, '\n');
    1916
    20     if(lc)
    21         *lc = 0;
     17    if (lc)
     18        *lc = '\0';
    2219}
Note: See TracChangeset for help on using the changeset viewer.