Segmentation fault
Package: atftp
Severity: important
Tags: patch
I have segmentation fault , on AMD64 platform .
The patch in attachement solve this problem and a warning during the compilation .
tftp.c: In function `make_arg':
tftp.c:360: warning: passing arg 4 of `argz_create_sep' from incompatible pointer type
--
____________________________________________________________
/ Erwan MAS /\
| mailto:erwan@mas.nom.fr |_/
___|________________________________________________________ |
\___________________________________________________________\__/
--- tftp.c.orig 2005-01-23 15:21:48.139134584 +0100
+++ tftp.c 2005-01-23 15:22:37.252668192 +0100
@@ -354,7 +354,7 @@
void make_arg(char *string, int *argc, char ***argv)
{
static char *tmp = NULL;
- int argz_len;
+ size_t argz_len;
/* split the string to an argz vector */
if (argz_create_sep(string, ' ', &tmp, &argz_len) != 0)
Reply to: