diff options
author | fcolin | 2006-06-16 14:36:22 +0000 |
---|---|---|
committer | fcolin | 2006-06-16 14:36:22 +0000 |
commit | 4cdbde3775be5c961d11bb5497d1c97e07c429b2 (patch) | |
tree | 2457af79b001d4f9bd9d6cfeb008db35bfe0c016 /src/ivy.c | |
parent | 0b7f0c87dd47ec35d788ee1e3a574a8b21d7e331 (diff) | |
download | ivy-c-4cdbde3775be5c961d11bb5497d1c97e07c429b2.zip ivy-c-4cdbde3775be5c961d11bb5497d1c97e07c429b2.tar.gz ivy-c-4cdbde3775be5c961d11bb5497d1c97e07c429b2.tar.bz2 ivy-c-4cdbde3775be5c961d11bb5497d1c97e07c429b2.tar.xz |
correction d'un BUG dans IvyGetMessages ( si nb > 200 )
ajout d'un argument -f a ivyprobe pour passer des regexps dans un fichier
Diffstat (limited to 'src/ivy.c')
-rw-r--r-- | src/ivy.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -860,7 +860,8 @@ char *IvyGetApplicationList(const char *sep) char **IvyGetApplicationMessages( IvyClientPtr app ) { - static char *messagelist[200];/* TODO remove that ugly Thing */ +#define MAX_REGEXP 4096 + static char *messagelist[MAX_REGEXP+1];/* TODO remove that ugly Thing */ MsgSndPtr msg; int msgCount= 0; memset( messagelist, 0 , sizeof( messagelist )); @@ -868,6 +869,11 @@ char **IvyGetApplicationMessages( IvyClientPtr app ) IVY_LIST_EACH( app->msg_send, msg ) { messagelist[msgCount++]= msg->str_regexp; + if ( msgCount >= MAX_REGEXP ) + { + fprintf(stderr,"Too Much expression(%d) for buffer\n",msgCount); + break; + } } return messagelist; } |