Commit 1b9d1563 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix res ouput id > 9

parent 30c0f378
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#include "options.h"
#ifdef DEBUGGING
#include "debug.h"
#include <assert.h>
#ifdef DEBUG_MODE_INFO
#ifdef DEBUG_MODE_INFO_TWEAK
#include <sys/stat.h>
@@ -771,8 +772,10 @@ char *fname(
    const int16_t id,
    const int16_t enc_dec )
{
    char idd[5] = ".idX";
    idd[3] = (char) ( id + '0' );
    char idd[6];

    assert( id < 100 );
    sprintf( idd, ".id%d", id );

    strcpy( tmp_fname, dir );
    strcat( tmp_fname, file );