Lines 293-304
Link Here
|
293 |
va_start(ap, l_start_column); |
293 |
va_start(ap, l_start_column); |
294 |
|
294 |
|
295 |
#ifndef NO_MESSAGE_CATALOG |
295 |
#ifndef NO_MESSAGE_CATALOG |
296 |
vsprintf( msg_buffer, |
296 |
vsnprintf( msg_buffer, 132, |
297 |
catgets(uil_catd, UIL_SET1, msg_cat_table[ message_number ], |
297 |
catgets(uil_catd, UIL_SET1, msg_cat_table[ message_number ], |
298 |
diag_rz_msg_table[ message_number ].ac_text), |
298 |
diag_rz_msg_table[ message_number ].ac_text), |
299 |
ap ); |
299 |
ap ); |
300 |
#else |
300 |
#else |
301 |
vsprintf( msg_buffer, |
301 |
vsnprintf( msg_buffer, 132, |
302 |
diag_rz_msg_table[ message_number ].ac_text, |
302 |
diag_rz_msg_table[ message_number ].ac_text, |
303 |
ap ); |
303 |
ap ); |
304 |
#endif |
304 |
#endif |
Lines 317-329
Link Here
|
317 |
*/ |
317 |
*/ |
318 |
|
318 |
|
319 |
#ifndef NO_MESSAGE_CATALOG |
319 |
#ifndef NO_MESSAGE_CATALOG |
320 |
sprintf( loc_buffer, |
320 |
snprintf( loc_buffer, 132, |
321 |
catgets(uil_catd, UIL_SET_MISC, |
321 |
catgets(uil_catd, UIL_SET_MISC, |
322 |
UIL_MISC_0, "\t\t line: %d file: %s"), |
322 |
UIL_MISC_0, "\t\t line: %d file: %s"), |
323 |
az_src_rec->w_line_number, |
323 |
az_src_rec->w_line_number, |
324 |
src_get_file_name( az_src_rec ) ); |
324 |
src_get_file_name( az_src_rec ) ); |
325 |
#else |
325 |
#else |
326 |
sprintf( loc_buffer, |
326 |
snprintf( loc_buffer, 132, |
327 |
"\t\t line: %d file: %s", |
327 |
"\t\t line: %d file: %s", |
328 |
az_src_rec->w_line_number, |
328 |
az_src_rec->w_line_number, |
329 |
src_get_file_name( az_src_rec ) ); |
329 |
src_get_file_name( az_src_rec ) ); |
Lines 371-377
Link Here
|
371 |
|
371 |
|
372 |
if (l_start_column != diag_k_no_column) |
372 |
if (l_start_column != diag_k_no_column) |
373 |
#ifndef NO_MESSAGE_CATALOG |
373 |
#ifndef NO_MESSAGE_CATALOG |
374 |
sprintf(loc_buffer, |
374 |
snprintf(loc_buffer, 132, |
375 |
catgets(uil_catd, UIL_SET_MISC, |
375 |
catgets(uil_catd, UIL_SET_MISC, |
376 |
UIL_MISC_1, |
376 |
UIL_MISC_1, |
377 |
"\t\t line: %d position: %d file: %s"), |
377 |
"\t\t line: %d position: %d file: %s"), |
Lines 379-385
Link Here
|
379 |
l_start_column + 1, |
379 |
l_start_column + 1, |
380 |
src_get_file_name( az_src_rec ) ); |
380 |
src_get_file_name( az_src_rec ) ); |
381 |
#else |
381 |
#else |
382 |
sprintf(loc_buffer, |
382 |
snprintf(loc_buffer, 132, |
383 |
"\t\t line: %d position: %d file: %s", |
383 |
"\t\t line: %d position: %d file: %s", |
384 |
az_src_rec->w_line_number, |
384 |
az_src_rec->w_line_number, |
385 |
l_start_column + 1, |
385 |
l_start_column + 1, |
Lines 387-399
Link Here
|
387 |
#endif |
387 |
#endif |
388 |
else |
388 |
else |
389 |
#ifndef NO_MESSAGE_CATALOG |
389 |
#ifndef NO_MESSAGE_CATALOG |
390 |
sprintf( loc_buffer, catgets(uil_catd, UIL_SET_MISC, |
390 |
snprintf( loc_buffer, 132, catgets(uil_catd, UIL_SET_MISC, |
391 |
UIL_MISC_0, |
391 |
UIL_MISC_0, |
392 |
"\t\t line: %d file: %s"), |
392 |
"\t\t line: %d file: %s"), |
393 |
az_src_rec->w_line_number, |
393 |
az_src_rec->w_line_number, |
394 |
src_get_file_name( az_src_rec ) ); |
394 |
src_get_file_name( az_src_rec ) ); |
395 |
#else |
395 |
#else |
396 |
sprintf( loc_buffer, |
396 |
snprintf( loc_buffer, 132, |
397 |
"\t\t line: %d file: %s", |
397 |
"\t\t line: %d file: %s", |
398 |
az_src_rec->w_line_number, |
398 |
az_src_rec->w_line_number, |
399 |
src_get_file_name( az_src_rec ) ); |
399 |
src_get_file_name( az_src_rec ) ); |