summaryrefslogtreecommitdiff
path: root/usr.bin/mg/echo.c
AgeCommit message (Collapse)Author
2003-04-16Fix a buffer overflow in complt_list(); it was allocating spaceTodd C. Miller
based on nrow when it wanted ncol. Also make the space-padding more bulletproof and avoid trying to pad w/ 0 characters. Closed PR 3190; vincent@ OK
2002-08-22knfTheo de Raadt
2002-07-03remove a useless {} that was there for "historical reasons" and only servedVincent Labrecque
to make the code go too far to the right.
2002-07-03 a few missing tests for malloc()'s return value.Vincent Labrecque
ok art@
2002-07-01KNF + ansi; from zyrnix (only the easy part of his diffs)Vincent Labrecque
2002-03-11 * Move to ANSI function definitions.Vincent Labrecque
* Add a whole lot of consts where I thought it made sense no ok, but no objections either...
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-14 remove the strcpy call, plus some KNFVincent Labrecque
ok deraadt@
2002-02-14some KNFTheo de Raadt
2002-01-18Remove the NROW and NCOL limits. The static arrays are now replaced withArtur Grabowski
dynamically allocated memory. Code written by Vincent Labrecque <limitln@Psyfreaks.CA> with some minor tweaks by me.
2001-05-24Break out function -> name mappings to an own file.Artur Grabowski
Add a possibility to dynamically extend the function table.
2001-05-24fix back a piece of my own stupidityMichael Shalayeff
2001-05-24vararg bye bye, spacesMichael Shalayeff
2001-05-24no need to cast va_arg outputMichael Shalayeff
2001-05-23cinfo is const, keyname() and findbind() take buffer size to use strlcpy vs ↵Michael Shalayeff
cpy+len
2001-05-23Bye, bye varargs. We're __STDC__.Artur Grabowski
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-05-23prettyArtur Grabowski
2001-05-23export free_file_list. XXX - it doesn't belong in echo.c and it's the wrong ↵Artur Grabowski
name.
2001-05-23prettyArtur Grabowski
2001-05-23complt already has code to finish the completion from a list.Artur Grabowski
No point in duplicating that code in complete_function.
2001-05-03 * Let make_file_list always append a '/' at the end of directories.Artur Grabowski
This makes filename TAB-completion more useful, now you don't need to write that '/' manually. * random cleanups including using snprintf and memcmp where open-coded equivalents were used, waitpid instead of 'while (wait() != pid);', etc.
2001-01-29$OpenBSD$Niklas Hallqvist
2000-09-01More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgTodd C. Miller
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-02-25initial import of mg2aTheo de Raadt