Changeset 180 for cpp/common/framsg.cpp


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

Remove fixed length buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/framsg.cpp

    r122 r180  
    55#include "framsg.h"
    66#include <common/nonstd_stdio.h>
     7#include "stl-util.h"
    78#include "Convert.h"
    89
     
    1112void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va)
    1213{
    13         char buf[10000];
    14         vsnprintf(buf,10000,bl,va);
    15         FramMessage(o,m,buf,w);
     14        string buf=ssprintf_va(bl,va);
     15        FramMessage(o,m,buf.c_str(),w);
    1616}
    1717
Note: See TracChangeset for help on using the changeset viewer.