diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-25 14:47:36 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-25 14:47:36 -0800 |
commit | c5b234c9cde079aa45ed93c42b5ed5e66ac969a3 (patch) | |
tree | e54304ee3638443952891613683e65032d4ccee2 /source3/printing | |
parent | c96d487ae3c65c17b377bb316adac4b5775448f3 (diff) | |
download | samba-c5b234c9cde079aa45ed93c42b5ed5e66ac969a3.tar.gz samba-c5b234c9cde079aa45ed93c42b5ed5e66ac969a3.tar.bz2 samba-c5b234c9cde079aa45ed93c42b5ed5e66ac969a3.zip |
Fix warnings with talloc_asprintf.
Jeremy.
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 7c449f98e5..5f5f344586 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1602,9 +1602,9 @@ static uint32 get_correct_cversion(struct pipes_struct *p, ****************************************************************************/ #define strip_driver_path(_mem_ctx, _element) do { \ - if ((_p = strrchr(_element, '\\')) != NULL) { \ - _element = talloc_asprintf(_mem_ctx, _p+1); \ - W_ERROR_HAVE_NO_MEMORY(_element); \ + if ((_p = strrchr((_element), '\\')) != NULL) { \ + (_element) = talloc_asprintf((_mem_ctx), "%s", _p+1); \ + W_ERROR_HAVE_NO_MEMORY((_element)); \ } \ } while (0); |