version 1.6, 2025/04/09 19:52:02
|
version 1.7, 2025/04/13 04:22:43
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.7 2025/04/13 04:22:43 snw |
|
* Fix snprintf calls |
|
* |
* Revision 1.6 2025/04/09 19:52:02 snw |
* Revision 1.6 2025/04/09 19:52:02 snw |
* Eliminate as many warnings as possible while building with -Wall |
* Eliminate as many warnings as possible while building with -Wall |
* |
* |
Line 347 short ge_select_block(int buf, long bloc
|
Line 350 short ge_select_block(int buf, long bloc
|
switch (b->btype) { |
switch (b->btype) { |
|
|
case DATA: |
case DATA: |
snprintf (b->bt_desc, 39, "DATA"); |
snprintf (b->bt_desc, sizeof (b->bt_desc) - 1, "DATA"); |
break; |
break; |
|
|
case POINTER: |
case POINTER: |
snprintf (b->bt_desc, 39, "POINTER"); |
snprintf (b->bt_desc, sizeof (b->bt_desc) - 1, "POINTER"); |
break; |
break; |
|
|
case BOTTOM: |
case BOTTOM: |
snprintf (b->bt_desc, 39, "BTM PTR"); |
snprintf (b->bt_desc, sizeof (b->bt_desc) - 1, "BTM PTR"); |
break; |
break; |
|
|
case EMPTY: |
case EMPTY: |
snprintf (b->bt_desc, 39, "EMPTY"); |
snprintf (b->bt_desc, sizeof (b->bt_desc) - 1, "EMPTY"); |
break; |
break; |
|
|
case FBLK: |
case FBLK: |
snprintf (b->bt_desc, 39, "FBLK"); |
snprintf (b->bt_desc, sizeof (b->bt_desc) - 1, "FBLK"); |
break; |
break; |
|
|
default: |
default: |
snprintf (b->bt_desc, 39, "ILLEGAL TYPE"); |
snprintf (b->bt_desc, sizeof (b->bt_desc) - 1, "ILLEGAL TYPE"); |
break; |
break; |
|
|
} |
} |
Line 514 int ge_open_global(char *gblname)
|
Line 517 int ge_open_global(char *gblname)
|
|
|
buf = ge_nextbuf++; |
buf = ge_nextbuf++; |
|
|
snprintf (gpath, 4095, "%s/%s", fma_global_path, gblname); |
snprintf (gpath, sizeof (gpath) - 1, "%s/%s", fma_global_path, gblname); |
|
|
printf ("fmadm: opening global %s [path %s, namespace %s]... ", gblname, gpath, fma_namespace); |
printf ("fmadm: opening global %s [path %s, namespace %s]... ", gblname, gpath, fma_namespace); |
|
|