libpurple/protocols/zephyr/error_message.c

changeset 39913
ce96d4639dc7
parent 39829
ce056c64e426
equal deleted inserted replaced
39912:94c809048a88 39913:ce96d4639dc7
43 return(et->table->msgs[offset]); 43 return(et->table->msgs[offset]);
44 } 44 }
45 } 45 }
46 46
47 strcpy (buf, "Unknown code "); 47 strcpy (buf, "Unknown code ");
48 if (table_num) { 48 strcat (buf, error_table_name_r (table_num, namebuf));
49 strcat (buf, error_table_name_r (table_num, namebuf)); 49 strcat (buf, " ");
50 strcat (buf, " ");
51 }
52 for (cp = buf; *cp; cp++) 50 for (cp = buf; *cp; cp++)
53 ; 51 ;
54 if (offset >= 100) { 52 if (offset >= 100) {
55 *cp++ = '0' + offset / 100; 53 *cp++ = '0' + offset / 100;
56 offset %= 100; 54 offset %= 100;

mercurial