diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-07 18:06:56 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-07 18:06:56 +0200 |
commit | bbb2643bdcc8fb3d7f29c11e1344286b042535bf (patch) | |
tree | 874f8a93f6afe13af796073c92a46dee774c946f /src/post | |
parent | 837822b5c6924be7fbc297bcef9639d7ada95a30 (diff) | |
download | xine-lib-bbb2643bdcc8fb3d7f29c11e1344286b042535bf.tar.gz xine-lib-bbb2643bdcc8fb3d7f29c11e1344286b042535bf.tar.bz2 |
Use proper string functions in place of sn?printf.
Instead of calling sprintf or snprintf with a "%s" format string, use
the proper strcpy, strncpy, strdup or strndup function.
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/goom/goom_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post/goom/goom_core.c b/src/post/goom/goom_core.c index b24f2f496..35fd7fc35 100644 --- a/src/post/goom/goom_core.c +++ b/src/post/goom/goom_core.c @@ -841,7 +841,7 @@ void update_message (PluginInfo *goomInfo, char *message) { if (message) { int i=1,j=0; - sprintf (goomInfo->update_message.message, "%s", message); + strcpy(goomInfo->update_message.message, message); for (j=0;goomInfo->update_message.message[j];j++) if (goomInfo->update_message.message[j]=='\n') i++; @@ -855,8 +855,8 @@ void update_message (PluginInfo *goomInfo, char *message) { char *ptr = msg; int pos; float ecart; + strncpy(msg, goomInfo->update_message.message, goomInfo->update_message.longueur); message = msg; - sprintf (msg, "%s", goomInfo->update_message.message); while (!fin) { while (1) { |