Revision 813af36b

View differences:

vhook/fish.c
337 337
                    FILE *f;
338 338
                    char fname[256];
339 339

  
340
                    sprintf(fname, "%s/fishimg%ld_%lld.ppm", ci->dir, time(0), pts);
340
                    snprintf(fname, sizeof(fname), "%s/fishimg%ld_%lld.ppm", ci->dir, time(0), pts);
341 341
                    f = fopen(fname, "w");
342 342
                    if (f) {
343 343
                        fprintf(f, "P6 %d %d 255\n", width, height);

Also available in: Unified diff