diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wallpaper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallpaper.c b/src/wallpaper.c index 8a2a979..930e52e 100644 --- a/src/wallpaper.c +++ b/src/wallpaper.c @@ -278,7 +278,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, filbuf[out++] = '\''; } else { - for (l = filelist; l; l = l->next) { + for (l = filelist; l && out < 4092; l = l->next) { filbuf[out++] = '\''; fil = FEH_FILE(l->data)->filename; |