aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-10 23:25:53 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-10 23:25:53 +0000
commitbd19a62c869354cc063cf3cc527fdb4973a34796 (patch)
tree35edda4508915e2b454d0c0ec48cd548deccd744 /libbb
parent0bac639e951d47c42e881e24055c553a34876f59 (diff)
downloadbusybox-w32-bd19a62c869354cc063cf3cc527fdb4973a34796.tar.gz
busybox-w32-bd19a62c869354cc063cf3cc527fdb4973a34796.tar.bz2
busybox-w32-bd19a62c869354cc063cf3cc527fdb4973a34796.zip
wget: fix error message.
Bad: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 : HTTP/1.0 404 Not Foundror 404 Not Found Good: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 get: server returned error: HTTP/1.0 404 Not Found nslookup: fix my mistake applets: make Bernhard Fischer <rep.nop@aon.at> happy :) git-svn-id: svn://busybox.net/trunk/busybox@16528 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/chomp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/chomp.c b/libbb/chomp.c
index 6165b83bc..eab770760 100644
--- a/libbb/chomp.c
+++ b/libbb/chomp.c
@@ -8,15 +8,12 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <stdio.h>
12#include <string.h>
13#include "libbb.h" 11#include "libbb.h"
14 12
15
16void chomp(char *s) 13void chomp(char *s)
17{ 14{
18 char *lc = last_char_is(s, '\n'); 15 char *lc = last_char_is(s, '\n');
19 16
20 if(lc) 17 if (lc)
21 *lc = 0; 18 *lc = 0;
22} 19}