What's wrong with the following piece of code that the program crashes - give segmentation fault. I am using gcc.
uint8_t result = 1
InsertRow("Name","Details of work",result);
void InsertRow(char *Name, char *Description,uint8_t Result)
{
char Buffer[500];
if(Result==1)
sprintf(Buffer,"<tr><td>%s </td> <td> %s </td> <td> %s </td></tr>",Name,Description,Result);
}