[Klone-users] Downloading files with Klone
thomas fossati
tho at koanlogic.com
Thu Nov 29 13:50:35 EST 2007
Hi Alvaro,
On Nov 29, 2007, at 7:27 PM, Alvaro Pereira wrote:
> <%!
> #include <string.h>
> #include <stdio.h>
> %>
> <html>
> <head>
> </head>
> <body>
> <%
> int len;
> char *name, *logFileName;
> FILE *fp;
> char buf[1024];
>
> logFileName = session_get(session, "file");
>
>
> response_set_content_type(response, "text/plain");
>
> strcpy(name, "c:\\folder\\");
it seems you are writing to non malloc'd mem address (name).
ciao, t.
More information about the klone-users
mailing list