From: Groepaz <gr...@gm...> - 2004-01-31 01:46:20
|
On Wednesday 28 January 2004 18:44, Sebastian Suchanek wrote: > Hello all! > > Is there a known bug with "strcpy" from the "string"-library? The > following code just seems to crash on a DS80C400: > > char fat_create(uchar *file) { > > uchar *path = NULL; > uchar *name = NULL; > uchar *full = NULL; > uchar *part = NULL; > uchar *last = NULL; > > strcpy(full, file); > printstring((xdata*)"Copied"); he, its a bug in your code :) try reserving some memory for your string before you copy it :) gpz |