In article <8gmhrd$jqj$1@nnrp1.deja.com>, U.V. Ravindra wrote: > > > I'm using SuSE 6.3 (Kernel 2.2.13 glibc 2.1.2) on an Alpha EV67. > Here's what I'm trying to do > > char buffr[4096+1] > > ... > ... > printf("before %s\n", buffr); > sprintf(buffr, "0, 0, 0, "); > printf("after %s\n", buffr); > > And I see the output: > > before dwki_nr_ibind(100, fname_var, 0, > after 0, 0, 0,i > > I don't have access to a Linux box right now and I can't reproduce your result on my Solaris box. It seems to me that you're only using 'sprintf' to copy a string into an array of characters. Why don't you use 'strcpy', 'memcpy', or a simple loop instead? But I agree, it looks strange... The 'i' should have been '\0' (or "\0"). /A -- # Andreas K�h�ri, . # All junk e-mail is reported to the # appropriate authorities, no exceptions. Sent via Deja.com http://www.deja.com/ Before you buy.