[pso] tema4 / win - problema la "test.c"

Cosmin Tudorache pso@cursuri.cs.pub.ro
Mon, 16 Aug 2004 14:08:45 -0700 (PDT)


parerea mea:

test.c
line 328> 
str = (char*)malloc(sizeof("p:\\") + sizeof(token) +
1);
strcat(str, "p:\\");

//ar trebui inlocuita:
//ori prima linie: str = (char*)calloc(sizeof("p:\\")
+ sizeof(token) + 1,1);
//ori a doua linie: strcpy(str, "p:\\");

line 334> ... la fel


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail