Re: [dev] [dwm] scrot -s fails

From: Bjartur Thorlacius <>
Date: Fri, 19 Aug 2011 19:30:08 +0000

Þann fös 19.ágú 2011 18:22, skrifaði Bastien Dejean:
> static const char *partialshotcmd[] = { "scrot", "-s", NULL };
I'd guess that the argument is never passed, as the string is terminated
by the NUL after scrot.

If I read your code correctly, the array contains:
s, c, r, o, t, NUL, -, s, NUL, NULL.

Where the trailing NULL is probably equal to NUL as well. That's three
NUL instead of the intended one - as C's string notation appends NULs
after the character array.
Received on Fri Aug 19 2011 - 21:30:08 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 19 2011 - 21:36:03 CEST