fix silly warning

This commit is contained in:
U-WIN-U2045GN0RNQ\Vítor Santos Costa 2011-03-08 00:02:19 +00:00
parent 8ee0724524
commit 0353c714d6

View File

@ -414,7 +414,7 @@ write_address(CELL address)
#if HAVE_SNPRINTF #if HAVE_SNPRINTF
snprintf(buf,32,"%p",(void *)address); snprintf(buf,32,"%p",(void *)address);
#else #else
snprintf(buf,"%p",(void *)address); sprintf(buf,"%p",(void *)address);
#endif #endif
p[31] = '\0'; /* so that I don't have to worry */ p[31] = '\0'; /* so that I don't have to worry */
Yap_DebugErrorPutc('0'); Yap_DebugErrorPutc('0');