[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: new sed bugfix (n.615, sed)
From: "Roberto A. Foglietta" <me () roberto ! foglietta ! name>
Date: 2005-12-28 11:21:48
Message-ID: 43B2754C.7060308 () roberto ! foglietta ! name
[Download RAW message or body]
Hi,
it is present in 1.1-pre1 too, sed converts 0x00 in 0x0a and forgets
the last 0x00 if it exist.
http://bugs.busybox.net/view.php?id=615
Cheers,
--
Roberto A. Foglietta
http://www.roberto.foglietta.name
SkypeNick: robang74
ICQ#: 108718257
["sed.diff" (text/x-patch)]
diff -pru busybox-1.01/editors/sed.c busybox-1.01_sed/editors/sed.c
--- busybox-1.01/editors/sed.c 2005-08-17 03:29:16.000000000 +0200
+++ busybox-1.01_sed/editors/sed.c 2005-12-28 12:12:25.000000000 +0100
@@ -763,7 +763,7 @@ static char *get_next_line(int *no_newli
static int puts_maybe_newline(char *s, FILE *file, int missing_newline, int no_newline)
{
- if(missing_newline) fputc('\n',file);
+ if(missing_newline) fputc('\0',file);
fputs(s,file);
if(!no_newline) fputc('\n',file);
@@ -1093,6 +1093,7 @@ discard_line:
flush_append();
free(pattern_space);
}
+ if (!be_quiet) sed_puts("",1);
}
/* It is possible to have a command line argument with embedded
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic