Ignore:
Timestamp:
03/18/14 09:11:39 (10 years ago)
Author:
Maciej Komosinski
Message:

Remove fixed length buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/errmgr/errmanager.cpp

    r121 r180  
    44
    55#include "errmanager.h"
    6 
     6#include <common/stl-util.h>
    77
    88void FramMessage(const char *o,const char *m,const char *bl,int w)
     
    6565{
    6666if (!isEnabled()) return;
    67 char buf[10000];
     67string buf;
    6868va_list argptr;
    6969va_start(argptr,bl);
    70 vsnprintf(buf,10000,bl,argptr);
     70buf=ssprintf_va(bl,argptr);
    7171va_end(argptr);
    72 send(o,m,buf,w);
     72send(o,m,buf.c_str(),w);
    7373}
    7474
Note: See TracChangeset for help on using the changeset viewer.