version 1.1.1.1, 2012/02/21 22:57:48
|
version 1.1.1.2, 2012/05/29 09:29:43
|
Line 1
|
Line 1
|
/* Copyright (C) 1999-2003, 2005 Free Software Foundation, Inc. | /* Copyright (C) 1999-2003, 2005, 2011 Free Software Foundation, Inc. |
This file is part of the GNU LIBICONV Library. |
This file is part of the GNU LIBICONV Library. |
|
|
The GNU LIBICONV Library is free software; you can redistribute it |
The GNU LIBICONV Library is free software; you can redistribute it |
Line 183 int main (int argc, char *argv[])
|
Line 183 int main (int argc, char *argv[])
|
if (tables[t].usecount > 1) { |
if (tables[t].usecount > 1) { |
char* s; |
char* s; |
if (p == tables[t].minline >> 5) { |
if (p == tables[t].minline >> 5) { |
s = (char*) malloc(5+1); | s = (char*) malloc(4+1+2+1); |
sprintf(s, "%02x_%d", p, ++i); |
sprintf(s, "%02x_%d", p, ++i); |
} else { |
} else { |
p = tables[t].minline >> 5; |
p = tables[t].minline >> 5; |
s = (char*) malloc(2+1); | s = (char*) malloc(4+1); |
sprintf(s, "%02x", p); |
sprintf(s, "%02x", p); |
} |
} |
tables[t].suffix = s; |
tables[t].suffix = s; |