1
0

patch-cgi_c 477 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- cgilib-0.7.orig/cgi.c 2009-01-11 22:59:16.000000000 +0100
  3. +++ cgilib-0.7/cgi.c 2009-03-31 19:16:46.214155324 +0200
  4. @@ -327,7 +327,7 @@ s_cgi *cgiReadMultipart (char *boundary)
  5. file->name = name;
  6. file->type = type;
  7. file->tmpfile = tmpfile;
  8. - if ((cp = rindex (fname, '/')) == NULL)
  9. + if ((cp = strrchr (fname, '/')) == NULL)
  10. file->filename = fname;
  11. else {
  12. file->filename = strdup (++cp);